The Simplest Cache: Direct Mapped Cache
4 Byte Direct Mapped Cache
Location 0 can be occupied by data from:
- Memory location 0, 4, 8, ... etc.
- In general: any memory locationwhose 2 LSBs of the address are 0s
- Addressə:0> => cache index
Which one should we place in the cache?
How can we tell which one is in the cache?