Question:

Consider a computer system with a byte-addressable primary memory of size \(2^{32}\) bytes.
Assume a direct-mapped cache of size 32 KB and cache block size of 64 bytes. The size of the tag field is \(\underline{\hspace{2cm}}\) bits.

Show Hint

Tag bits = Address bits − (Index bits + Offset bits).
Updated On: Jan 30, 2026
Hide Solution
collegedunia
Verified By Collegedunia

Correct Answer: 17

Solution and Explanation

\[ \text{Main memory size} = 2^{32} $\Rightarrow$ \text{Address bits} = 32 \] \[ \text{Cache size} = 32\,\text{KB} = 2^{15} \text{ bytes} \] \[ \text{Block size} = 64 = 2^6 $\Rightarrow$ \text{Offset bits} = 6 \] \[ \text{Number of blocks} = \frac{2^{15}}{2^6} = 2^9 $\Rightarrow$ \text{Index bits} = 9 \] \[ \text{Tag bits} = 32 - (9 + 6) = 17 \] Final Answer: \[ \boxed{17} \]
Was this answer helpful?
0
0

Top Questions on Memory hierarchy

View More Questions