Tag A₃₁ - A₁₈
Index A₁₇ - A₇
Offset A₆ - A₀
As only one address-length is given, so we take 32 bits as the length of physical address
Here, number of bytes per cache-block
= (Number of bytes per cache-line) / (Number of blocks per cache-line)
= 512 / 4
= 128
= 2⁷
Thus, the lowest 7-bits of the physical address denote the offset.
number of lines
= (Total number of bytes in cache) / (Number of bytes per cache-line)
= 2²⁰ / 512
= 2²⁰ / 2⁹
= 2¹¹
Thus, the lowest 11-bits of the physical address denote the index.
Number of bits in tag
= (Number of bits in physical address) - (Number of bits for offset) - (Number of bits for index)
= 32 - 7 - 11
= 14
Thus, the lowest 14-bits of the physical address denote the tag.
to know more about offset, tags and index, visit
https://brainly.com/question/16971099
#SPJ4