| The cache has two sets (with indices 0 and 1) with two elements per set. The table on the right shows to which cache block each block address maps. |
|
| Address of memory block accessed | Hit or miss | Contents of cache blocks after reference | |||
|---|---|---|---|---|---|
| Set 0 | Set 0 | Set 1 | Set 1 | ||
| 0 | miss | Memory[0] | |||
| 8 | miss | Memory[0] | Memory[8] | ||
| 0 | hit | Memory[0] | Memory[8] | ||
| 6 | miss | Memory[0] | Memory[6] | ||
| 8 | miss | Memory[8] | Memory[6] | ||
| Address of memory block accessed | Hit or miss | Contents of cache blocks after reference | |||
|---|---|---|---|---|---|
| Block 0 | Block 1 | Block 2 | Block 3 | ||
| 0 | miss | Memory[0] | |||
| 8 | miss | Memory[0] | Memory[8] | ||
| 0 | hit | Memory[0] | Memory[8] | ||
| 6 | miss | Memory[0] | Memory[8] | Memory[6] | |
| 8 | hit | Memory[0] | Memory[8] | Memory[6] | |
|
You look full of the joys of spring (very happy, full of energy) this morning. |