We are Simulate a cache of 16 words, 2-way set associate cache with 2 word cache lines and LRU replacement policy; assume the cache in initially empty. The following sequences of address references are generated (the addresses are given in hexadecimal), where all references are instruction or data fetches (no stores):
62 63 64 98 65 99 66 99 67 68 69 6A 63 64 108 65 109 66 109 67 68 69 63
After 8 memory references, which one the following is correct regarding the status of cache?
(A) Set 1 contains 63
(B) Set 0 contains 64
(C) Both (A) and (B)
(D) None of these
After 12 memory references, which one the following is correct regarding the status of cache?
(A) Set 1 contains 6A
(B) Set 0 contains 64
(C) Both (A) and (B)
(D) None of these
After 15 memory references, which one the following is correct regarding the status of cache?
(A) Set 1 contains 6A
(B) Set 0 contains 108
(C) Both (A) and (B)
(D) None of these