πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      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:
      A 9,6,5 Correct Answer Incorrect Answer
      B 9,5,6 Correct Answer Incorrect Answer
      C 5,9,6 Correct Answer Incorrect Answer
      D None of these Correct Answer Incorrect Answer

      Solution

      The number of sets = 128/4 = 32 (as it is 4 way set associative) We have total 64 words then we need 6 bits to identify the word So the line offset is 5 bits and the word offset is 6 bits and the TAG = 20-(5+6) =9 bits so it should be 9,5,6 Β 

      Practice Next

      Relevant for Exams:

      ask-question