Lec 22
Lec 22
Scribe for today?
Main Memory
DRAM versus SRAM
DRAM is cheaper, but slower
Reducing the number of pins
At the cost of some performance
Address = RAS + CAS
Performance metrics: latency and bandwidth
#cycles to send address
#cycles to access a word
#cycles to send the data word
Main Memory Performance:
One-Word Wide Memory
CPU Suppose,
Bus (1 word) #cycles to send address = 4
Cache
#cycles to access 1 word = 24
#cycles to send data word = 4
Bus (1 word)
Cache line = 4 words
Main
Memory What is the miss penalty?
4 x (4 + 24 + 4) = 128 cycles
Technique-1: Wider Memory
CPU What is the miss penalty now?
Bus (1 word) 2 x (4 + 24 + 4) = 64 cycles
Mux
Cache Disadvantages?
Bus (2 words)
Larger bus width (cost)
Unit of memory addition
is larger
Main
Read-modify-write for
Memory
single-byte write, if
error-correction present
Technique-2: Interleaved-Memory
CPU What is the miss penalty
Bus (1 word) now?