riscv-tests icon indicating copy to clipboard operation
riscv-tests copied to clipboard

How to test the RISCV kernel developed with Verilog using rv32ui in riscv-tests?

Open kai413629305 opened this issue 5 years ago • 1 comments

How to test the RISCV kernel developed with Verilog using rv32ui in riscv-tests?Thank you!

kai413629305 avatar Mar 16 '19 15:03 kai413629305

I had the same question; I'm not sure if this is right, but I think you can just write a testbench which runs the operations from the assembly files under isa/rv32ui, and check the expected values:

https://github.com/riscv/riscv-tests/tree/master/isa/rv32ui

It looks like each instruction has its own assembly file (like add.S), and it seems like most of the 32-bit tests just #include the corresponding 64-bit test file:

https://github.com/riscv/riscv-tests/tree/master/isa/rv64ui

WRansohoff avatar Mar 12 '20 21:03 WRansohoff