ACA_Lecture_26_Replacement Algorithms
ACA_Lecture_26_Replacement Algorithms
2
● Q. Consider a 4 block cache with the
following main memory references:
4, 5, 7, 12, 4, 5, 13, 4, 5, 7
a) FIFO
b) LRU
c) Direct mapping
d) 2-way set associative with LRU
3
● Q. Consider a 4 block cache with the
following main memory references:
4, 5, 7, 12, 4, 5, 13, 4, 5, 7
4
● Q. Consider a 4 block cache with the
following main memory references:
4, 5, 7, 12, 4, 5, 13, 4, 5, 7
5
● Q. Consider a 4 block cache with the
following main memory references:
4, 5, 7, 12, 4, 5, 13, 4, 5, 7
6
Q. The main memory of a computer is organized as 64 blocks
with a block size of eight words. The cache has eight block
frames.
● A) Identify the tag field, the block number and the word
number in case of direct mapping.
● B) Show the fully associative mapping and the address bits
that identify the tag field and the word number.
● C) Show the two-way set associativity mapping and the
address bits that identify the tag field, the set number.