-
Consider a 4-way set associate cache consisting of 128 lines with a line size of 64 words. The CPU generates a 20- bit address of word in main memory. The number of bits in the TAG, LINE and WORD fields are respectively.
-
- 9, 6, 5
- 7, 7, 6
- 7, 5, 8
- 9, 5, 6
- 9, 6, 5
Correct Option: D
64 words require 6 bitsno. of sets = no. of lines/ set size = 128/4 = 32 sets which require 5 bitsno. of tag bits = 20-5-6 = 9,5,6