This program is a simulator for the behavior of the cache memory system. It is part A of the cache lab - the 4th lab of 2015 Fall: 15-213 Introduction to Computer Systems.
- Takes a Valgrind memory trace as input
- Simulates cache memory behavior of an arbitrary size
- Outputs total number of hits, misses, and evictions
- Implements the LRU (Least Recently Used) policy for cache eviction
cachelab.pdf
: Lab writeupcsim.c
: Contains the main functioncache.c
: Contains the cache simulator implementationtraces/
: Directory containing Valgrind memory trace filestest-sim
: Tests the correctness of the simulator
Note: This repository is specific to the CMU 15-213 course and the cache lab.