I have an online homework assignment that is asking me for the tag and index in a direct-mapped cache, for a series of memory addresses. The cache is specified to have 16 one word blocks.
One of the first memory addresses given is 134.
My attempt goes as follows:
134 = 10000110
16 = 2^4
so, I get that:
index = 10000110 mod 16 = 0110
tag = 1000 (the leftover part)
Apparently this is wrong. Could someone please help me to see why?