Memory Subsystem and Memory Hierarchy
Memory Subsystem and Memory Hierarchy
Auxiliary memory
Magnetic
tapes I/O Main
processor memory
Magnetic
disks
CPU Cache
memory
• External memory
• Backing store
Write
Memory Type Category Erasure Volatility
Mechanism
Random-access Read-write Electrically, byte-
Electrically Volatile
memory (RAM) memory level
Read-only
Masks
memory (ROM) Read-only
Not possible
Programmable memory
ROM (PROM)
Erasable PROM UV light, chip-
(EPROM) level Nonvolatile
Electrically Electrically
Read-mostly Electrically, byte-
Erasable PROM
memory level
(EEPROM)
Electrically,
Flash memory
block-level
• Optical
• CD-ROM
• CD-Recordable (CD-R)
• CD-R/W
• DVD
• Magnetic Tape
f
i =1
i =1
• Read
• Address line selected
• transistor turns on
• Charge from capacitor fed via bit line to sense amplifier
• Compares with reference value to determine 0 or 1
• Capacitor charge must be restored
DRAM Refreshing
• Refresh circuit included on chip
• Disable memory array chip
• Count through rows and select each in turn
• Read contents & write it back (restore)
• Takes time
• Dynamic cell
• Simpler to build, smaller
• More dense
• Less expensive
• Needs refresh
• Larger memory units
• Static
• Faster
• Cache
Read Only Memory (ROM)
• Provides permanent storage (nonvolatile)
• Types
• Written during manufacture (very expensive for small runs)
• Programmable (once) PROM (needs special equipment to program)
• Read “mostly”
• Erasable Programmable (EPROM) - Erased by UV
• Electrically Erasable (EEPROM) - Takes much longer to write than read
• Flash memory - Erase whole memory electrically
Internal linear organization
Slot 3 Slot 4
SIMM
Slot 1 Slot 2
SIMM SIMM
Processor
• Number of address lines on each 2KX8 A15 A14 A13 A12 A11 A10 A0 Mem. Map
memory chip = 11 0 0 0 0 0 0 0 0000 Not
1 0 0 1 1 1 1 9FFF Used
2m = 2K = 21 x 210 = 211 (A0..A10) 1 0 1 0 0 0 0 A000
RAM1
• Decoder needed = 2X4 1 0 1 0 0 1 1 A7FF
D7
D0 D7 D0 D7 D0 D7 D0 D7
D0 A0 A0 A0 A0
RD WR CS RD WR CS RD WR CS RD WR CS
RD
WR
A0
2X4 DEC.
A11
A Y0
A12
B Y1
A13
Y2
A14
CS Y3
A15 A15