Memory Hierarchy Q.44

0. Consider a 4-way set associative cache consisting of 128 lines with a line size of 64 words. The CPU generates a 20-bit address of a word in main memory. The number of bits in the TAG, LINE and WORD fields are respectively

  • Option : B
  • Explanation : For identifying each of 128 lines uniquely, number of bits required = 7 bits.
    Since each line is of size 64 words, so number of bits needed to identify each word uniquely = 6 bits. Now, since there are 20 bits in address generated by CPU
     Bits needed for tag = 20 – (7 + 6) = 7 bits.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *