760 views

1 Answer

0 votes
0 votes
Assuming memory to be word addressable So we have 2 words per block means cache contains total of 4 blocks and in memory every two words present per block.

So     addresses :  0,11,4,14,9,1,8,0

Correspond Blk :    0,5, 2, 7, 4,0, 4,0                // You can simply calculate manually or block no = floor(address/block size)

So

0 = Compulsory miss

5 = Compulsory miss

2 = Compulsory miss

7 = Compulsory miss

4 = Conflict miss

0 = Conflict miss

4  = Conflict miss

0 = Conflict miss

 

So total misses = 8 , Conflict miss = 4,Compulsory miss = 4

So answer = 8+4+4 = 16

 

Am i right?

Related questions

2 votes
2 votes
0 answers
1
h4kr asked Dec 27, 2022
535 views
In $T_{Read Avg}$, shouldn’t it be $T_{Read Avg}$ = (10*0.9) + 0.1*(10+100), because it must be checking the cache in case of cache miss too, right?
1 votes
1 votes
1 answer
2
Raj_Choudhary asked Dec 4, 2017
1,634 views
a direct-mapped cache of the size of 4 blocks. The main memory block access sequences are 0,1,2,3,4,1,2,3,0,4,0 No. of compulsory misses, conflict misses and capacity mis...