Professional Documents
Culture Documents
William Stallings
Computer Organization
and Architecture
10th Edition
© 2016 Pearson Education, Inc., Hoboken,
NJ. All rights reserved.
+ Chapter 5
Internal Memory
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Control Control
Table 5.1
Semiconductor Memory Types
◼ DRAM
Pass
transistor
Capacitor
Compl.
Bit Bit
bit
line line
line
(a) DRAM cell (b) Typical SRAM cell
Single-transistor DRAM cell, which is considerably simpler than SRAM cell, leads
to dense, high-capacity DRAM memory chips.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+ DRAM Refresh Cycles and Refresh Rate
Threshold
voltage
10s of ms
0 Stored before needing
Voltage refresh cycle Time
for 0
Fig. 17.5 Variations in the voltage across a DRAM cell capacitor after writing
a 1 and subsequent refresh operations.
+
Static RAM
(SRAM)
▪ Digital device that uses the same
logic elements used in the
processor
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)
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+
Read Only Memory (ROM)
◼ Contains a permanent pattern of data that cannot be
changed or added to
1001
Word
lines
0010
1101
B i t li nes
Read-only memory organization, with the fixed contents
shown on the right.
+
Programmable ROM (PROM)
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
◼ 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 In M M K
f
Memory 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
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
C
Data Bit D4 D3 D2 D1
Check Bit C4 C2 C1
C2 = D1 + D3 + D4 + D6 + D7
C4 = D2 + D3 + D4 + D8
C8 = D5 + D6 + D7 + D8
• If the syndrome contains one and only one bit set to 1, then
an error has occurred in one of the 4 check bits. No correction
is needed.
• If the syndrome contains more than one bit set to 1, then the
numerical value of the syndrome indicates the position of the
data bit in error. This data bit is inverted for correction.
Data Bit D D D D D D D D D D D D D D D D
1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1
6 5 4 3 2 1 0
Check C C C C C
Bit
1 8 4 2 1
6
C8 = D5 + D6 + D7 + D8 + D9 + D10 + D11
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
Table 5.2
Increase in Word Length with Error Correction
CLK
COMMAND READ A NOP NOP NOP NOP NOP NOP NOP NOP
Table 5.4
DDR Characteristics
◼ Uses only one transistor per bit so it achieves the high density of
EPROM
N+ N+
Drain Source
P-substrate
+ + + + + +
Control Gate Control Gate
Floating Gate – – – – – –
N+ N+ N+ N+
Drain Source Drain Source
P-substrate P-substrate
(b) Flash memory cell in one state (c) Flash memory cell in zero state
p subs-
trate
n+
B i t li nes Drain