This is the implementation of the cache simulator for a processor in the c++ language.
cache_simulate.cpp
: This file contains the code for the cache simulator.memory_trace_files
: This folder contains the memory trace files.makefile
: This file contains the commands to compile and run the code.combine.py
: This file contains the code to combine the memory trace files plots in the foldersplot1
,plot2
,plot3
,plot4
andplot5
into a single filegraph_data.txt
.Report.pdf
: This file contains the report for the assignment.plot1
,plot2
,plot3
,plot4
andplot5
: These folders contain the outputs for the memory trace files.
The makefile contains the following commands:
all
: This command compiles the code.clean
: This command removes the executable file. To run the code, use the following commands: with the parameters
- block size
- cache size L1
- associativity L1
- cache size L2
- associativity L2
make all
./cache_simulate 64 1024 2 65536 8 memory_trace_files/trace1.txt