in CO and Architecture retagged by
319 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!! 

in CO and Architecture retagged by
319 views

3 Comments

edited by

Block size = 64 words

No of lines in cache  = 32 blocks

No of frames in MM = 256 blocks

BO : 6 bits

No of sets = 32 / 8 = 22

2 bits required to represent no of of sets

 

MM size = 256 * 64 = 2 14 words

14 - (6+2)

 = TAG BITS = 6 bits ?

 

0
0
@magma they said 6
0
0
Yes, Answer will be 6.
What's your problem??
0
0

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