Risc-V model practice with function & timing split
The basic model based on the Sparta framework has now been established. The functional component of the model is derived from Spike, while the timing aspect is implemented using Sparta.
First download and build the Spike manually
git submodule update --init --recursive
cd thirdparty/riscv-isa-sim/
./build.sh
We assume that the Sparta environment variable is set to install path. And install all tools in thirdparty.
cmake -Bbuild
cd build
make
Running a trace file:
./model --json arches/config/simple_arch.json --workload ./traces/dhry_riscv.zstf
Running an elf file:
./model --json arches/config/simple_arch.json --elf ./traces/elf_test/benchmarks/dhrystone.riscv
For more infomation, to see:
./model --help