Direct Mapping with C=4
•Shrinking our example to a cache line size of 4
slots (each slot/line/block still contains 4 words):
–Cache Line Memory Block Held
•0 0, 4, 8, …
•1 1, 5, 9, …
•2 2, 6, 10, …
•3 3, 7, 11, …
–In general:
•0 0, C, 2C, 3C, …
•1 1, C+1, 2C+1, 3C+1, …
•2 2, C+2, 2C+2, 3C+2, …
•3 3, C+3, 2C+3, 3C+3, …