retagged by
339 views
0 votes
0 votes

WHAT WILL BE THE ANS I M GETTING 10  BITS IN TAG FIELD!!! IS IT CORRECT THEY SHOWS DIFFERENT ANS NOT 10!!

ANYONE TRY PLEASE AND LET ME KNOW THANKS IN ADVANCE!! 

retagged by

1 Answer

2 votes
2 votes

Block size = 64 words = 26

So, Block offset = 6 bits

No. of Blocks in Cache = 32 = 2= No. of Lines in cache

Main Memory size  = 256 Blocks = 256 * 2= 214 .

Set No = (No. of lines in the cache) / 8  [ Since 8-way set-associative]

= 25 / 8 = 22

So set no = 2 bits

Hence TAG = 14 - (6+2)

= 6 bits

Related questions