Merge pull request #244 from MichaelBell/fix-rv32e

Fix RV32E shifts by immediates >= 0x10
This commit is contained in:
KrystalDelusion 2024-03-27 07:19:49 +13:00 committed by GitHub
commit 336cfca6e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -652,7 +652,8 @@ module picorv32 #(
reg instr_getq, instr_setq, instr_retirq, instr_maskirq, instr_waitirq, instr_timer; reg instr_getq, instr_setq, instr_retirq, instr_maskirq, instr_waitirq, instr_timer;
wire instr_trap; wire instr_trap;
reg [regindex_bits-1:0] decoded_rd, decoded_rs1, decoded_rs2; reg [regindex_bits-1:0] decoded_rd, decoded_rs1;
reg [4:0] decoded_rs2;
reg [31:0] decoded_imm, decoded_imm_j; reg [31:0] decoded_imm, decoded_imm_j;
reg decoder_trigger; reg decoder_trigger;
reg decoder_trigger_q; reg decoder_trigger_q;