Professional Documents
Culture Documents
Class 17
Class 17
15-213
Topics
• Memory Hierarchy Basics
• Static RAM
• Dynamic RAM
• Magnetic Disks
• Access Time Gap
class17.ppt
Computer
System
Processor
Reg
Cache
Memory-I/O bus
disk
Disk disk
Disk Display Network
C
CPU 4B a 8B 4 KB
Memory disk
c
regs h
e
Read:
– set bit lines high
(6 transistors) – set word line high
– see which bit line goes low
Stable Configurations
0 1 1 0
0.9
0.8
0.7
0.6
Slope > 1
0.5
Slope < –1 V1
0.4
V2
0.3
0.2
Vin 0.1
V1 0
0 0.2 0.4 0.6 0.8 1
V2
Vin
Vin Stability
V1 • Require Vin = V2
• Stable at endpoints
V2 – recover from pertubation
• Metastable in middle
– Fall out when perturbed
1 Stable
0.9 Ball on Ramp Analogy
0.8
0.7
0.6 Metastable
0.5
Vin
0.4
V2
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
Stable Vin 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
W1
A0
A1 Address memory
A2 decoder cells
A3 W15
R/W
sense/write sense/write sense/write
amps amps amps
Input/output lines d7 d1 d0
class17.ppt –9– CS 213 F’98
Dynamic RAM
(DRAM)
Slower than SRAM
• access time ~70 ns [1995]
Nonpersistant
• every row must be accessed every ~1 ms (refreshed)
Cheaper than SRAM
• ~$1.50 / MByte [1998]
• 1 transistor/bit
Fragile
• electrical noise, light, radiation
Workhorse memory technology
Storage Node
Bit
Access
Line Transistor
Cnode
CBL
Writing Reading
Word Line Word Line
Row Row
8 256x256
address \ decoder
latch cell array
row
256 Columns
A7-A0
column
R/W’
sense/write
amps
col
Provide 16-bit
Column column
address in two 8
address \ latch and
8-bit chunks
latch decoder
CAS
Dout Din
class17.ppt – 13 – CS 213 F’98
DRAM Operation
Row Address (~50ns)
• Set Row address on address lines & strobe RAS
• Entire row read & stored in column latches
• Contents of row of memory cells destroyed
Column Address (~10ns)
• Set Column address on address lines & strobe CAS
• Access selected bit
– READ: transfer from selected column latch to Dout
– WRITE: Set selected column latch to Din
Rewrite (~30ns)
• Write back entire row
• SDRAM
Entire row buffered here
– “Synchronous DRAM”
Typical Performance
row access time col access time cycle time page mode cycle time
50ns 10ns 90ns 25ns
class17.ppt – 16 – CS 213 F’98
Video RAM
Performance Enhanced for Video / Graphics Operations
• Frame buffer to hold graphics image
Writing
• Random access of bits
• Also supports rectangle fill operations 256x256
– Set all bits in region to 0 or 1 cell array
Reading
• Load entire row into shift register
column
• Shift out at video rates
sense/write
Performance Example amps
• 1200 X 1800 pixels / frame
• 24 bits / pixel
Shift Register
• 60 frames / second
• 2.8 GBits / second Video Stream Output
SiO2 Dielectric
Storage Plate
Reference Plate
4Mb
4 Mb Cell Structure
16Mb
64Mb
256Mb
arm
The surface consists
of a set of concentric
magnetized rings called
tracks
The read/write
head floats over
the disk surface
and moves back
Each track is divided and forth on an
into sectors arm from track to
track.
class17.ppt – 24 – CS 213 F’98
Disk
Parameter Capacity 540MB Example
• Number Platters 8
• Surfaces / Platter 2
• Number of tracks 1046
• Number sectors / track 63
• Bytes / sector 512
Total Bytes 539,836,416
1
▲
0.1
1980 1985 1990 1995
Year
1,000,000 ▲ SRAM
100,000
10,000
1,000
●
▲ ●
▲
100 ● ●
▲
10 ▲
1
1980 1985 1990 1995
Year
Processors
metric 1980 1985 1990 1995 1995:1980
▲
●
▲
■
●
100 ▲
▲
■
●
●
10
■
1
1980 1985 1990 1995
Year