Mini CPU written by completely Chisel.
Chisel MiniCPU is written by Chisel and not use Verilog. Completely simulatable by Scala environment.
Chisel-MiniCPU is tested on Ubuntu 18.04 LTS.
riscv-tests repository is used to run regression test using Chisel-MiniCPU. It is recommended to install riscv-tools and $RISCV environment variable should be set.
git clone https://github.com/msyksphinz/chisel-minicpu.git
cd chisel-minicpu
cd tests/riscv-tests/isa
make # Generate hex test file.
cd ../../../../
ruby ./gen_test_class.rb
make regression
pipetrace.[test pattern].log
is generated and can be confirm pipeline behavior.
make test_run_rv64ui_p_add
pipetrace.rv64ui_p_add.log
spike-dasm < pipetrace.rv64ui_p_add.log > pipetrace.rv64ui_p_add.dasm.log
less pipetrace.rv64ui_p_add.dasm.log
Email : msyksphinz.dev@gmail.com