This visualization demonstrates a simplified Cache with the following characteristics:
[ Tag | Set | Word offset]
.
For simplicity the word offset will always be 0 (we do not consider unaligned memory accesses -- this is usually done by the memory controller who also combines the values after reading the cache).This model is intentionally simplified to focus on the fundamental behavior of set-associative caches. Advanced features such as write-back/write-through, valid bits, and dirty bits are not included.
Index / Set | Set 0 | Set 1 | Set 2 | Set 3 | ||||
---|---|---|---|---|---|---|---|---|
Tag | Data | Tag | Data | Tag | Data | Tag | Data | |
Index 0 | ||||||||
Index 1 |