Advanced Computer Architecture
Advanced Computer Architecture
Architecture
Dr. Angela C. Sodan
Lecture 8
Overview
Memory hierarchy / caches
Memory Hierarchy
Recall: memory/processor gap is
increasing
Technological background:
DRAM – dynamic, to be (automatically)
rewritten, improved performance if BiCMOS
-> the technology for main memory
SRAM – static, no refreshing, faster, more
expensive
-> the technology for caches
In addition access speed reduces with size
Memory Hierarchy
Trade-off between cost/size and speed
(and space on chip)
Basic solution: memory hierarchy
Registers
Caches (multilevel, bridging)
Main memory
Other measures:
Memory interleaving
(Multiple) register sets
Review Caches
Which characteristics are important
Cache is implicit (typically transparent and all
transfer automatic)
Conversely to registers/memories which are
explicitly accessed (load/store)
In speed and size between registers and
memory
Works as a “buffer” to memory (load/store)
Why can this work?
Caches and Locality
Caches – only – work if program has
temporal and/or spatial locality
This typically is the the case but
What does this mean?