Skip to content

YouqiXia/Perseus_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perseus_model

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.

Build Steps

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

Compiling and Running an elf or trace file

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

About

Risc-V model practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published