-
make // this will compile all the .java files to .class files
-
java sim_cache <BLOCKSIZE> <L1_SIZE> <L1_ASSOC> <L2_SIZE> <L2_ASSOC> <REPLACEMENT_POLICY> <INCLUSION_PROPERTY> <trace_file>
-
make clean // this will remove all the .class files
-
java sim_cache 16 1024 2 0 0 0 0 gcc_trace.txt // only L1 with LRU and non-inclusive
-
java sim_cache 16 1024 2 8192 4 0 1 gcc_trace.txt // L1 and L2 with LRU and inclusive
-
Make sure to put correct path of the trace files
-
Higher values of blocksize or cache size needs to be handled separately
-
L2 cache might give different results