Answer:
3 bits
Explanation:
Given a 4- way set associative cache that has 64 blocks of 16 words.
Therefore, the number of sets cache has:
[tex]\frac{64}{4} = 16 [/tex]
Now,
Cache data size is 16kB
The number of cache blocks can be calculated as:
[tex]16kB/16 = 1024 bytes/16 byte\times 16 = 256 cache blocks[/tex]
Now,
Total sets = [tex]\frac{cache blocks}{associative sets}[/tex]
Total sets = [tex]\frac{256}{4} = 64[/tex]
Now,
[tex]2^{n} = 64[/tex]
n = 6
For 15 bit address for the architecture, the bits in tag field is given by:
15 - (6 + 6) = 3 bits
Thus the tag field will have 3 bits