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.
Control Control
Table 5.1
Semiconductor Memory Types
DRAM
T5 C1 HIGH LOW C2 T6
Transistor
Storage
capacitor
T1 T2
OFF ON
(a) Dynamic RAM (DRAM) cell (b) Static RAM (SRAM) cell
RED INDICATES STATE WHEN A BINARY “1”
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
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
Data Input
A10 Column Buffer D1
Address D2
Refresh circuitry D3
Buffer Data Output D4
Buffer
Column Decoder
Refresh involves stepping through each row, reading the cells with RAS and then writing them right back.
AND
INVERTER
F=D0+D1+D2+D3
OR
AND
Decode 1 of
Memory address 512 bits
512
register (MAR) Chip #1
9 Decode 1 of
512 bit-sense Memory buffer
register (MBR)
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
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 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 C
Table 5.2
Increase in Word Length with Error Correction
C1 = D1 D2 D4 D5 D7
C2 = D1 D3 D4 D6 D7
C4 = D2 D3 D4 D8
C8 = D5 D6 D7 D8
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
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
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
DRAM
PCRAM
NAND FLASH
ReRAM
HARD DISK
Decreasing cost
per bit,
increasing capacity
or density
(a) STT-RAM
Heater Heater
Insulator Insulator
(b) PCRAM
(c) ReRAM