tinyriscv/tests/riscv-compliance/riscv-target/tinyriscv
liangkangnan d9a1f89fd2 tests: riscv-compliance: add support
Signed-off-by: liangkangnan <liangkangnan@163.com>
2021-06-05 16:02:02 +08:00
..
device tests: riscv-compliance: add support 2021-06-05 16:02:02 +08:00
README.md tests: add riscv-compliance 2020-05-27 23:04:07 +08:00
compliance_io.h tests: add riscv-compliance 2020-05-27 23:04:07 +08:00
compliance_test.h tests: riscv-compliance: add support 2021-06-05 16:02:02 +08:00

README.md

Running the compliance tests with RI5CY

Build RI5CY's core testbench by navigating to riscv/tb/core and calling make vsim-all or if you prefer verilator make verilate.

Set TARGET_SIM by providing the vsim executable and the work directory of the compiled model of RI5CY e.g. export TARGET_SIM=vsim -work RI5CY_REPO/tb/core/work or point TARGET_SIM to the compiled verilator testbench e.g. export TARGET_SIM=RI5CY_REPO/tb/core/testbench_verilator

Now set the following variables:

export RISCV_PREFIX=riscv32-unknown-elf-
export RISCV_TARGET=ri5cy
export RISCV_DEVICE=rv32imc

You are now ready to run the tests. The following are supported:

  • make RISCV_ISA=rv32i
  • make RISCV_ISA=rv32im
  • make RISCV_ISA=rv32imc