in CO and Architecture retagged by
3,756 views
3 votes
3 votes

Consider a 16-way set-associative cache with data words are 64 bits long and words are addressed to the half-word. The cache holds 2 Mbytes of data and each block holds 16 data words. Physical addresses are 64 bits long, How many bits of tag, index, and offset are needed to support references to this cache?

Can someone please explain what do we we mean by words are addressed to the half-word in the above question?

in CO and Architecture retagged by
3.8k views

2 Comments

Ans-46,17,1 ??
0
0
no the answer is given as 49,10,5
0
0

2 Answers

0 votes
0 votes
Can anyone explain the whole answer.
0 votes
0 votes
16 way set associative memory means k = 16
Word length = 64bits = 8 Bytes
Cache Size in words = 2MB/8 = 256KB which needs 18 bits
Block Size = 16 words i.e. BO=4 bits
No of lines = CS/BS = 2^(18-4) = 2^14 i.e 14 bits for representing no of lines
But we have 16 way set associative memory
so set bits= 10 bits
block bits = 4 bits
tag bits = unknown as PAS not given to us

let PAS has x bits
so tag bits = x-10-4 bits = x-14 bits

Related questions