Professional Documents
Culture Documents
March 2017
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 2/43
Contents
Introduction to Caches
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 3/43
Introduction to Caches
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 4/43
CLK
PC RD A1
A A2
A3 RD1
RD4 A1 RD1
ALUs
A4
Instruction A5 Register A2 RD2
A6 File RD2
Memory RD5 Data
WD3 Memory
WD6
WD1
WD2
Image is Figure 7.67 from Harris D. M. and Harris S. L., Digital Design
and Computer Architecture, 2nd ed.,
c 2013, Elsevier, Inc.
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 7/43
Introduction to Caches
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 9/43
Image is Figure 8.19 from Harris D. M. and Harris S. L., Digital Design
and Computer Architecture, 2nd ed.,
c 2013, Elsevier, Inc.
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 14/43
DRAM (continued)
Memory Controller
Shared L3 Cache
Image is Figure 7.80 from Harris D. M. and Harris S. L., Digital Design
and Computer Architecture, 2nd ed.,
c 2013, Elsevier, Inc.
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 25/43
Flash memory
Compared to DRAM, flash is cheaper per bit, but much slower.
The name “flash” comes from the electrical process used to
erase a block of memory, and has nothing to do with relative
speed.
Unlike DRAM or SRAM, flash maintains data when power
is turned off.
Flash is useful for file systems for computers where hard
disks would be too slow or too bulky.
“Solid-State Drives”, which have replaced magnetic disks in
many current laptop and desktop computer designs, store files
in flash memory.
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 26/43
Introduction to Caches
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 28/43
instruction addresses
Can we combine
I a very fast small-capacity memory (SRAM)
Introduction to Caches
ENCM 369 Winter 2017 Slide Set 8 for Lecture Section 01 slide 35/43
What is a cache?
32 32
processor core
(control, registers, instructions main
ALUs, f-p hardware) memory
physical
address 32
D-cache
32
32 32 32
data instructions
or data
Locality of Reference