gem5, packaged for HFIM: the simulator, NVMain, and the fault injector compiled into it. A campaign that targets caches, coherence structures or memory models names this package and the version it needs.
How campaigns use it is in the gem5 backend page of the HFIM documentation.
On a laptop, as an image:
./build.sh # produces hfim-sim-gem5:<version>
On a server, in place:
./install.sh # builds both variants and DRAMsim3
export HFIM_SIM_GEM5=$PWD
Either way manifest.yaml tells hfim where the binaries are, which
backends they provide, and which hfim versions they work with.
| Directory | What it is |
|---|---|
gem5/ |
the nv-gem5 fork of gem5 v23.0, with HFIM's edits listed in VENDOR_README.md |
nvmain/ |
NVMain, for non-volatile memory models, with HFIM's edits listed in VENDOR_README.md |
integration/ |
the FIM SimObjects and the gem5 config scripts |
Two binaries are built, because a gem5 binary carries one coherence
protocol: build/RISCV/gem5.opt for classic caches (backend gem5) and
build/RISCV_MESI_Two_Level/gem5.opt for Ruby MESI (backend
gem5-ruby).
The injector is integration/simobjects-fim/fim/fim_controller.cc. It
compiles against this fork and not against upstream gem5, so it is
versioned here rather than in the
hfim repository. integration/BUILD.md
says how to build and check it.