Answer:
Tag = 1
Index = 5
Block offset = 2
Step-by-step explanation:
From the given information:
The main memory bits(MM) = 221
number of block in the cache = 64 blocks
Block size = 4B
Recall that;
MM = log (memory size)
Thus;
main memory bits = log (221)
= 8 bits
Since this is a 2-way assoicative set;
the number of set in each cache = block size/2
64/2 = 32
Now, the index bit = log( no of set in each cache)
= log(32)
= 5 bits
Also since block size = 4B;
the block offset = log(4) = 2 bits
As such, tag = main memory bits - (index bit + block offset)
tag = 8 -(5 + 2)
tag = 8 -7
tag = 1