edited by
807 views
2 votes
2 votes
A byte-addressable computer has a small data cache capable of holding eight $32$-bit words. Each cache block consists of one $32$-bit word. When a given program is executed, the processor reads data from the following sequence of hex addresses:

$200, \ 204, \ 208, \ 20C, \ 2F4, \ 2F0, \ 200, \ 204, \ 218, \ 21C, \ 24C,  \ 2F4$

This pattern is repeated four times. Assume that the cache is initially empty. If a direct-mapped cache is used, then the hit rate is __________ $\%$
edited by

3 Answers

Best answer
1 votes
1 votes
Hit rate is (33/48 ) * 100 = 0.69 * 100 = 69 %
selected by
2 votes
2 votes

Answer is : 68.75%

here, 4 times repetition

Total No of misses = 9 + 2 + 2 + 2 = 15

Total possible outcomes(hit+misses) = 4*12 = 48

total no of hits = total possible outcomes - total no of misses

Total no of hits = 48 - 15 = 33

hit ratio % = (33/48) * 100 = 68.75%

Answer:

Related questions

1 votes
1 votes
3 answers
1