This is a project that hopes to verify the result presented in Hawkeye Cache Replacement Policy.
The ChampSim environment is needed and should be put parrallel with this directory. The experiments follow the CRC2. Use crp
for cache replacement policy, cf
for configuration, and bcmk
for benchmark in the followings
/ChampSim_CRC2
/ChampSim_CRC2/trace
/ece552_cr_project # Current dir
./exec # Execute files: crp-cf
./results # Store outputs: crp-cf-bcmk.out
./scripts # Scripts
./src # Your source files (cache replacement policy impl)
Run everythin under /ece552_cr_project
.
pwd
# xxx/ece552_cr_project
./scripts/compile.sh
./scripts/run_sim.sh
- Add you source files in
compile.sh
- IMPORTANT: Change number of instructions to simulate in
run_sim.sh
when final testing. Please also change the directory of results correspondingly.
- Change your source file config to follow that in microbenchmark.cc.
- Revise commands in ./scripts/run_microbenchmark.sh.
- Run ./scripts/run_microbenchmark.sh
- Run ./MicroBenchmarks_exec/ship