Lectures wk7
Lectures wk7
Lectures wk7
EQ
BL BL
VDD
SE
SE
sense
clk isolation transistor
regenerative amplifier
115
Clocked Sense Amp
bit bit_b
sense_clk isolation
transistors
regenerative
feedback
sense sense_b
116
Alpha Differential Amplifier/Latch
S3 column
S2
S1 decoder
S0
mux_out
!mux_out
precharge
0->1
P1 P2
sense
amplifier
N3 N5
sense
N2 N4
sense N1
0->1 off->on V = Vdd
P3 P4
Pre -> Closed)
!sense_out
sense_out
117
Sense Amp Waveforms
1ns / div
bit
200mV
bit’
wordline wordline
begin precharging bit lines
BIT
2.5V
BIT’
121
Write Driver Circuits
122
Twisted Bitlines
• Sense amplifiers also amplify noise
• Coupling noise is severe in modern processes
• Try to couple equally onto bit and bit_b
• Done by twisting bitlines
b0 b0_b b1 b1_b b2 b2_b b3 b3_b
123
Transposed-Bitline Architecture
BL’
Ccross
BL
SA
BL
BL"
BL’
Ccross
BL
SA
BL
BL"
125
Review of Memory Hierarchies
CPU
Increasing Capacity
Cache
Physical Memory
Increasing Speed
(SRAM)
Main Memory
(DRAM)
Virtual Memory
(Hard Disk)
126
Who Cares About the Memory Hierarchy?
µProc
1000 CPU
60%/yr.
“Moore’s Law” (2X/1.5yr)
Performance
Processor-Memory
100 Performance Gap:
(grows 50% / year)
10 DRAM
DRAM
9%/yr.
(2X/10 yrs)
1
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
Time 127
Cache Memory Motivation
128
Memory Reference Patterns
Bad locality behavior
Memory Address (one dot per access)
Temporal
Locality
Spatial
Locality
Time
Donald J. Hatfield, Jeanette Gerald: Program
129
Restructuring for Virtual Memory. IBM Systems Journal
10(3): 168-192 (1971)
Caches
130
2/8/2024 CS252-Fall’07 130
Cache Memories
• Relatively small SRAM memories located physically
close to the processor
• SRAMs have low access times
• Physical proximity reduces wire delay
131
Where can a block be placed ?
• Block 12 placed in 8 block cache:
• Fully associative, direct mapped, 2-way set associative
• S.A. Mapping = Block Number Modulo Number Sets
Block 1111111111222222222233
no. 132
01234567890123456789012345678901
Data Address is used to organise cache storage strategy
Tag
Index
Block
Byte
133