edited by
113 views
2 votes
2 votes

A computer system has a $16K$ word cache organized in block-set-associative manner with $4$ blocks per set, $32$ words per block. The number of bits in the SET and WORD fields of the main memory address format is:

  1. $6, 4$
  2. $4, 5$
  3. $5, 5$
  4. $7, 5$
edited by

1 Answer

2 votes
2 votes
Word Offset = $\log_2{32}=5.$
    
    Number of sets $  = \dfrac{2^{14}}{2^2\times 2^5} = 128.$
    
    So, set offset $ = \log_2 128 = 7.$
Answer:

Related questions

1 votes
1 votes
1 answer
4