retagged by
275 views
1 votes
1 votes
Suppose that a direct-mapped cache has $2^{10}$ cache lines, with $2^4$ bytes of data per cache line. If the cache is used to store blocks for a byte addressable  memory of size  $2^{30}$ bytes, then number of bytes of space will be required for storing the tags is ________ (put the integer value)
retagged by

1 Answer

Best answer
2 votes
2 votes
total no of blocks in cache = 2^10

total bits for each block = 10 bits

each line is of size = 2^4 byte

bits for line = 4bit

total instruction size = 30 bit (2^30 = memory size)

so tag bits = 30 -(10+4) = 16bits

and for each block of cache tag bit is used so total space taken by tag = 2^10 *16 bits = 2^11 byte = 2048 byte
selected by
Answer:

Related questions