Note: Make reasonable assumptions where necessary and clearly state them.
An 8 byte, 2-way set associative (using LRU replacement) with 2 byte blocks receives requests for the following addresses (represented in binary): 0110, 0000, 0010, 0001, 0011, 0100, 1001, 0000, 1010, 1111, 0111 For each access, determine the address in the cache (after the access), whether each access hits or misses, and the categorization of each miss under the “3 C” model. Fill in the worksheet in the format shown below with your answer to this question. You should fill in the cache lines with the tags that reside there. (A cache line is another name for a cache block.)
Address | Line 0 | Line 1 | Hit or Miss Type |
---|---|---|---|
0110 | |||
0000 | |||
0010 | |||
.... |