Lecture 7 Objectives
At the end of today's class you should
KNOW:
- How a cache memory works
- The difference between direct-mapped cache and set-associative cache
BE ABLE TO:
- Define spatial locality and temporal locality
- Explain how direct-mapped and set-associative caches work
- Define the terms cache line, tag, set
Sample Exam Question:
In a short, well-written paragraph, explain how cache takes advantage of the
fact that programs exhibit temporal and spatial locality.