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

Hits in a direct-mapped cache

A cache has 4 lines of 4 bytes each and is direct-mapped (each block can live in exactly one line: block mod 4). It starts empty. Only reads happen.

How many of the 6 reads are hits?

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