Direction: Consider a machine with a byte addressable main memory of 216 byte. Assume that a direct mapped data cache consisting of 32 lines of 64 byte each is used in the system. A 50 × 50 twodimensional array of bytes is stored in the main memory starting from memory location 1100H. Assume that the data cache is initially empty. The complete array is accessed twice. Assume that the contents of the data cache do not change in between the two accesses.
-
Which of the following lines of the data cache will be replaced by new blocks in accessing the array for the second time?
-
- Line 4 to line 11
- Line 4 to line 12
- Line 0 to line 7
- Line 4 to line 8
- Line 4 to line 11
Correct Option: A
The lines that will be replaced by the new blocks are lines 4 to 11.