recategorized by
447 views
0 votes
0 votes

Consider a $256k$   $4$- way set associative cache with block size $64$ Bytes. Main memory is $2Gb.$ The number of bits used for tag,set and word will be respectively?

  1. $10,15,6$
  2. $9,16,6$
  3. $8,17,6$
  4. $7,18,6$


I think answer is $15,10,6 $ $\text{(tag,set,word)}$

recategorized by

1 Answer

–1 votes
–1 votes
ans is 9,16,6

16 bcoz ,num of block=256k

and setoffset =s=n/k

                          =256k/4=64k

                            =16bit required

Related questions

0 votes
0 votes
1 answer
1
Pankaj Joshi asked Jan 13, 2017
294 views
my question is even in case of a miss the cache will still be accessed and then main memory, right? please explain this when to consider higher memory level access time a...
1 votes
1 votes
1 answer
4
jatin khachane 1 asked Jan 26, 2019
412 views
Consider the unpipelined machine with $10$ nanoseconds clock cycles. It uses four cycles for ALU operations and branch whereas 5 cycles for memory operation. Assume that ...