RISCV Constraint

RISCV Constraint

Constraint Randomization using Verilator

Verilator has been slowly adding support for constraint randomization and the recent 5.028 version adds the support for conditional constraints. I was excited to see this update and right away jumped on using it to develop quick set of constraints to generate legal RV32I instructions.

You can take a look at the code and play around with it to add more support.

Would be happy to hear on how would you implement these set of constraints.

Loading the interactive workspace...