Correct Answer - Option 3 : 10
The correct answer is option 3
Data
Memory address = 32 bits
Data Cache = 32 KB = 215 B
Block Size = 32 B = 25 B
Formula:
In a direct Mapped, the main memory can be represented as
32 = tag + lines + Block offset (In bits)
Calculation:
Assume byte-addressable:
\({\rm{number\;of\;blocks\;in\;cache\;memory}} = \frac{{{2^{15}}}}{{{2^5}}} = {2^{10}}\)
So, the number of bits required to index the cache blocks =⌈ log2 210 ⌉ = 10