YosysHQ / picorv32

PicoRV32 - A Size-Optimized RISC-V CPU
ISC License
3.08k stars 748 forks source link

Bug when using RV32E (ENABLE_REGS_16_31=0) #211

Closed djupdal closed 6 months ago

djupdal commented 2 years ago

Support for rv32e is buggy. Setting ENABLE_REGS_16_31 = 0 leads to the following:

Easily fixed by setting decoded_rs2 (and possibly decoded_rs1 and decoded_rs) fixed 5 bits wide, instead of having it depend on the size of the register file.