Simulation of cache memory management with common replacement policies
The purpose of this project is to study, via simulation, the performance of memory management policies and memory
configurations for cache memory systems. For the simulations, the trace files can be described below.
The trace files have been generated on a PC. The two programs traced have been stripped by removing cache hits
observed by a cache with 32 sets, 1-way associative, with 8 contiguous addresses per line.
Format:
Example: The first threee references of TRACE1.dat are 038FE8, 038FF8, and 039000, in hexadecimal form.
DEBUG prints this information as follows:
To prepare a program to simulate a cache memory system. The cache memory system will be evaluated under two replacement policies: FIFO and LRU, given the criteria below
N - number of sets
The total number of bytes of cache memory is given by the product LKN and L=8 will be used throughout the simulations.
The miss rate should then be recorded for each simulation using MISS RATE = (TOTAL # OF MISSES/TOTAL # OF REFERENCES x 10)