17
Memory

Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Embed Size (px)

Citation preview

Page 1: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Memory

Page 2: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Memory• When we receive some instruction or information

we retain them in our memory. Similarly a computer stores the instructions for solving a problem , the data to be processed , the intermediate results and the final results until they are displayed.

• This storage unit s known as computer memory or store.

• It consists of chips either on the motherboard or on a small circuit board attached to the motherboard.

• This electronic memory allows the CPU to store and retrieve data quickly.

Page 3: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Memory• Two types of built-in-memory:• Permanent memory.Some memory chips retain the data they hold, even

when the computer is turned off. This type of permanent memory is called nonvolatile.

• Non-Permanent memory.Other chips – in fact, most of the memory in a

microcomputer-lose their contents when the computers power is shut down. This type of nonpermanent memory is called volatile.

Page 4: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Nonvolatile Memory• Nonvolatile chips hold data even when the computer is

unplugged. • During normal use, the data in these chips is only read and

used- not changed- so the memory is called read only memory (ROM).

• Specifically, chips that cannot be changed are called programmable read only memory (PROM).

• PROM chips are often found on hard drives and printers.• They contain the instructions that power the devices. These

instructions, once set, never need to be changed.

Page 5: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Nonvolatile Memory• When a computer is turned on, it must know how to start.• ROM contains a set of start-up instructions called the basic

input output system (BIOS) for a computer.

FLASH MEMORY • Flash memory is a special type of nonvolatile memory. • It is often used in portable digital devices for storage.• Digital cameras, portable MP3 players, USB “keychain”

storage devices all use flash memory.

Page 6: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Volatile Memory• Volatile memory requires to store data.• The volatile memory in a computer is called random

access memory (RAM).• RAM’s job is to hold programs and data while they are in

use.• Physically, RAM consists of chips on a small circuit board.• Single inline memory modules (SIMMs) and dual inline

memory module (DIMM) chips are found in desktop computers.

• While the smaller, small outline DIMM (SO-DIMM) chips are found in laptop computers.

Page 7: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

RAMRandom Access Memory

• It is also called main memory or direct access memory or read/write memory.

• A program must be loaded into RAM before execution.• Data and instructions can be read and modified.• It play an important role in processing of computer.

Page 8: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Types of RAMSRAM (Static Random Access Memory)• Retains contents as long as power is maintained.• Faster than DRAM.• SRAM is more expensive. • CPU does not wait to access data.• It is usually used to build a very fast memory

known as cache.

Page 9: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Types of RAM

DRAM (Dynamic RAM)• Must be constantly refreshed.• Requires an electric current to maintain its

electrical state.• The electrical charge of DRAM will decrease with

time that may result in lose of data.• Used for most PC memory because of size and

cost.

Page 10: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Read Only Memory (ROM)

• Programs and data that are permanently recorded at the factory.

• The instructions can only be read and cannot be deleted.

• Cannot be changed by the user.• When the computer is switched on ,the instructions

in the ROM are automatically loaded into the memory of the computer.

Page 11: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Types of ROMPROM

• Programmable ROM• This form of ROM is initially blank.• The user can write data and programs on it.• The user can write data and instructions on it only

once.

Page 12: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

EPROM

• Stands for Erasable Programmable Read Only Memory

• It is initially blank• The user can write data and programs on it.• The data and program written on it can be

erased using ultraviolet rays.

Page 13: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

EEPROM

• Stands for Electronically Erasable Programmable Read Only Memory

• It is initially blank• The user can write data and programs on it.• The content of EEPROM can be modified easily.• The data and program written on it can be erased

using electrical pulses.

Page 14: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Cache Memory

• Small block of very fast temporary memory• Speed up data transfer• It is located inside or close to CPU chip.• It is faster than RAM• Instructions and data used most frequently or

most recently.

Page 15: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Cache

Step 1Processor requests data or instructions

Step 2Go to address in main memory and read

Step 3Transfer to main CPU and cache

Next processor request• Look first at cache• Go to memory

PROCESSOR

R

A

M

Cache

Page 16: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Types of Cache

• Internal cache– Level 1 (L1)– Built into microprocessor– Up to 128KB or 256 KB

• External cache– Level 2 (L2)– Separate chips– 256KB or 512 KB– SRAM technology– Cheaper and slower than L1– Faster and more expensive than memory

Page 17: Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,

Measuring Storage Capacity

KB – kilobyte• 1024 bytes• Some diskettes• Cache memory

MB – megabyte• Million bytes• RAM

GB – gigabyte• Billion bytes• Hard disks• CDs and DVDs

TB – terabytes• Trillion bytes• Large hard disks