Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Latest commit

 

History

History
5 lines (3 loc) · 701 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 701 Bytes

This C project is a cache simulation of a CPU containing L1D, L1I and L2 caches. It takes an image of memory and a memory trace as input, simulates the hit/miss behavior of a cache memory on this trace, and outputs the total number of hits, misses and evictions for each cache type along with the content of each cache at the end.

It takes command-line arguments about the information of wanted CPU caches. Detailed explanations are in cachelab.pdf file. Also I included the RAM.dat image file.

If you are reading this file, most probably you know how to compile this C program and execute it. But if you don't know it, I have a Wiki page for you to be with US. Visit it.