Ünite
Ünite
Chapter 6
Internal Memory
UV light,
Erasable PROM (EPROM)
chip-level
Nonvolatile
Electrically Erasable PROM Read-mostly Electrically, Electrically
(EEPROM) memory byte-level
Electrically,
Flash memory
block-level
• DRAM
– Made with cells that store data as charge on capacitors
Address line T3 T4
T5 C1 C2 T6
Transistor
Storage
capacitor
T1 T2
(a) Dynamic RAM (DRAM ) cell (b) Static RAM (SRAM ) cell
• Dynamic cell
–
–
Simpler to build, smaller
More dense (smaller cells = more cells per unit area)
DRAM
– Less expensive
– Requires the supporting refresh circuitry
– Tend to be favored for large memory requirements
– Used for main memory
• Static
– Faster
– Used for cache memory (both on and off chip)
Flash
EPROM EEPROM
Memory
Electrically erasable
programmable read-only Intermediate between
Erasable programmable
memory EPROM and EEPROM in
read-only memory
both cost and functionality
Refresh
Counter MUX
Data Input
A10 Column Buffer D1
Address D2
Refresh circuitry D3
Buffer Data Output D4
Buffer
Column Decoder
Decode 1 of
M emory address 512 bits
512
register (M AR) Chip #1
9 Decode 1 of
512 bit-sense M emory buffer
register (M BR)
1
2
9 3
4
5
6
7
8
512 words by
Decode 1 of
512 bits
512
Chip #8
Decode 1 of
512 bit-sense
Interleaved Memory
DRAM chips
If consecutive words of
memory are stored in different
banks, the transfer of a block
of memory is speeded up
• Soft Error
– Random, non-destructive event that alters the contents of one or more memory
cells
– No permanent damage to memory
– Can be caused by:
▪ Power supply problems
▪ Alpha particles
Data Out M
Corrector
Data I n M M K
f
M emory Compare
K K
f
1 1 1 0
1 1
1 0 1 0
0
C C
(c) A B (d) A B
1 1 0 1 1 0
1 1
0 0 0 0
0 0
C C
Copyright © 2022 Pearson Education, Ltd. All Rights Reserved
Table 6.2
Increase in Word Length with Error
Correction
Single-Error Correction/
Single-Error Correction
Double-Error Detection
8 4 50.0 5 62.5
16 5 31.25 6 37.5
32 6 18.75 7 21.875
64 7 10.94 8 12.5
Bit
12 11 10 9 8 7 6 5 4 3 2 1
Position
Position
1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001
Number
Data
D8 D7 D6 D5 D4 D3 D2 D1
Bit
Check
C8 C4 C2 C1
Bit
0 0 0 1 1 0 1
1 1 0
1 0 1 0 1 0
0 0
1 1
(d) (e) (f)
1 0 1 1 0 1 1 0 1
0 0 0
1 0 1 1 1 1
0 0 0
1 1 1
WE Write enable
DQ0 to DQ7 Data input/output
DQM Data mask
Copyright © 2022 Pearson Education, Ltd. All Rights Reserved
Figure 6.13
SDRAM Read Timing (burst length = 4,
latency = 2)
T0 T1 T2 T3 T4 T5 T6 T7 T8
CLK
COM M AND READ A NOP NOP NOP NOP NOP NOP NOP NOP
Front side bus data rates (Mbps) 200—400 400—1066 800—2133 2133—4266
N+ N+
D r a in Sou r ce
P- su bst r a t e
+ + + + + +
Con t r ol Ga t e Con t r ol Ga t e
Floa t in g Ga t e – – – – – –
N+ N+ N+ N+
D r a in Sou r ce D r a in Sou r ce
P- su bst r a t e P- subst r a t e
(b) Flash memory cell in one state (c) Flash memory cell in zer o state
High High
High Hard High Hard
Low Easy Low Easy
High Hard High Hard
Active Code Active Code
Low Low Low Low
power Low execution power Low execution
High High
High High
Read speed Capacity Read speed Capacity
High High
Write speed Write speed
SRAM
STT- RAM
D RAM
PCRAM
N AN D FLASH
Re RAM
H ARD D I SK
D e cr e a sin g cost
pe r bit ,
in cr e a sin g ca pa cit y
or de n sit y
(a) STT-RAM
Heater Heater
I nsulator I nsulator
(b) PCRAM
(c) ReRAM