167 views
3 votes
3 votes

A computer system has a $8\; K$ word cache organized in block-set-associative manner with $8$ blocks per set and $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. $8, 5$

1 Answer

Best answer
5 votes
5 votes
Word Offset = $\log_2{32}=5.$
    
    Number of sets $  = \dfrac{2^{13}}{2^3\times 2^5} = 32.$
    
    So, set offset $ = \log_2 32 = 5.$
selected by
Answer:

Related questions

6 votes
6 votes
1 answer
4
gatecse asked Aug 3, 2020
549 views
Consider a direct mapped cache of size $16$ KB and block size $64$ bytes and using LRU replacement. Initially the cache is empty. The following sequence of access to memo...