Direct Mapping
Suppose we reference an item.
- How do we know if it’s in the cache?
- If not, we should add it. Where should we put it?
One simple answer: direct mapping
- The address of the item determines where in the cache to store it
- In this case, the lower three bits of the address dictate the cache entry
-