How to make new unit tests ? #73
-
|
Hello, I am currently trying to implement the M extension on RVX, however I cannot figure out how you got the unit tests .hex files. Did you compile them by yourself ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Yes, I compiled them from https://github.com/riscv-non-isa/riscv-arch-test/. Here you find tests for all RISC-V ISAs, including the M extension: https://github.com/riscv-non-isa/riscv-arch-test/tree/dev/riscv-test-suite I archived the repo I used to compile the tests. I compiled a long time ago, when the RISC-V Architecture Test SIG was still using what they call "the old framework" (here: https://github.com/riscv-non-isa/riscv-arch-test/tree/old-framework-2.x) I'll compile the M extension for you and share the test programs for this extension. |
Beta Was this translation helpful? Give feedback.
-
|
Here is the file with all the M extension unit tests compiled. You can use it the same way the tests for the I extension are used, just added them to the Vivado and Verilator tests for the rvx_core.v module. |
Beta Was this translation helpful? Give feedback.
-
|
And here are the reference files (sorry, I forgot to add them in the message above). |
Beta Was this translation helpful? Give feedback.
M_unit_tests.zip
Here is the file with all the M extension unit tests compiled. You can use it the same way the tests for the I extension are used, just added them to the Vivado and Verilator tests for the rvx_core.v module.