Consider a -way set associative cache consisting of lines with a line size of words. The CPU generates a address of a word in main memory. The number of bits in the TAG, LINE and WORD fields are respectively:
View worked solution
Answer: D
To determine the size of the TAG, LINE (Set Index), and WORD (Offset) fields, we analyze the structure of the -bit physical address generated by the CPU:
-
WORD Field ():
The block size (line size) is given as words. -
LINE Field ():
The cache is -way set associative and contains a total of lines. -
TAG Field ():
The total address size is bits.
Thus, the number of bits in the TAG, LINE, and WORD fields are respectively .
Free practice · Your answers on this page are not saved.
