riscv-boom / boom-template

DEPRECATED. Please use Chipyard (https://github.com/ucb-bar/chipyard) to build BOOM
Other
35 stars 11 forks source link

csmith "torture" testing. #7

Closed jerryz123 closed 5 years ago

jerryz123 commented 5 years ago

riscv-torture does not provide good coverage of compressed instructions. https://github.com/ucb-bar/riscv-torture/issues/7

I really like @cliffordwolf 's torture testing using csmith for PicoRV32. This seems like a good thing to have in the scripts directory, and possibly in CI as well. I used this to find a bug in the RVC implementation. https://github.com/cliffordwolf/picorv32/tree/master/scripts/csmith

He has a good writeup of the script here. https://github.com/ucb-bar/riscv-torture/issues/7#issuecomment-217152324