A block-set associative cache memory consists of blocks divided into four block sets. The main memory consists of blocks and each block contains eight bit words.
- How many bits are required for addressing the main memory?
- How many bits are needed to represent the TAG, SET and WORD fields?
View worked solution
Answer: 22
We can determine the address structure by analyzing the specifications of the main memory and the cache memory.
1. Bits required for addressing the main memory
- Number of blocks in main memory: blocks
- Block size: words
- Total number of words in main memory:
- Since each word is individually addressable, the number of bits required to address the main memory is:
2. Bits for TAG, SET, and WORD fields
The 22-bit physical address is divided into three fields: [ TAG | SET | WORD ].
- WORD field: Since each block contains words, we need bits for the WORD (offset) field.
- SET field: The cache has blocks divided into -block sets (4-way set associative). Thus, we need bits for the SET field.
- TAG field:
Summary of fields:
- TAG: bits
- SET: bits
- WORD: bits
Free practice · Your answers on this page are not saved.
