Skip to content
Tactiverge
Level 4Architecture trade-offsWork it out

Same cache, two ways

Keep the same 4 lines of 4 bytes, but make the cache 2-way set-associative: 2 sets of 2 lines, least-recently-used replacement inside a set. It starts empty.

How many of the 6 reads are hits now?

New to this? Silicon Studio 15 (advanced: cache)

How results are computed: model assumptions.

Byte addresses read, in order

0, 4, 16, 0, 4, 16