Beginning from power on the following byteaddressed cache re
Beginning from power on, the following byte-addressed cache references are recorded.
PART A) For each reference, list (1) its tag, index, and offset, (2) whether it is a hit or a miss, and (3) which bytes were replaced (if any).
PART B) What is the hit ratio?
| Hex | 00 | 04 | 10 | 84 | E8 | A0 | 400 | 1E | 8C | C1C | 84 | 884 |
| Dec | 0 | 4 | 16 | 132 | 232 | 160 | 1024 | 30 | 140 | 3100 | 180 | 2180 |
Solution
1)0-2 offset. 3-6 index, 7-11 tag and cache table has the 12entries because
2 index = 2 4 = 16 entries.
B ) Hit Ratio : it is the fraction of access the data.
