The size of the physical address space of a processor is bytes. The word length is bytes. The capacity of cache memory is bytes. The size of each cache block is words. For a -way set-associative cache memory, the length (in number of bits) of the tag field is
View worked solution
Answer: B
To find the length of the tag field in a -way set-associative cache, we can divide the physical address into three fields: Tag, Set Index, and Block Offset.
1. Physical Address Length:
The size of the physical address space is bytes. Thus, the total physical address length is bits.
2. Block Offset Bits:
- Word length = bytes
- Block size = words = bytes = bytes
3. Set Index Bits:
- Total cache capacity = bytes
- Number of blocks in the cache =
- For a -way set-associative cache, the number of sets is:
4. Tag Bits:
The sum of the fields must equal the total physical address length :
Thus, the correct option is B.
Free practice · Your answers on this page are not saved.
