diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-09-06 19:58:03 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-09-06 19:58:03 +0200 |
commit | da3749819197875c10eeec54551401ac19090902 (patch) | |
tree | f30bd5ac6ea12c9aff10211743506a11a5025c09 /picorv32.v | |
parent | 7f946d0f843f03fc1a0384465245b6164f27f18c (diff) | |
download | picorv32-da3749819197875c10eeec54551401ac19090902.tar.gz picorv32-da3749819197875c10eeec54551401ac19090902.zip |
Two minor bugfixes
Diffstat (limited to 'picorv32.v')
-rw-r--r-- | picorv32.v | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1494,7 +1494,7 @@ module picorv32 #( timer <= cpuregs_rs1; cpu_state <= cpu_state_fetch; end - is_lb_lh_lw_lbu_lhu: begin + is_lb_lh_lw_lbu_lhu && !instr_trap: begin `debug($display("LD_RS1: %2d 0x%08x", decoded_rs1, cpuregs_rs1);) reg_op1 <= cpuregs_rs1; cpu_state <= cpu_state_ldmem; @@ -1525,7 +1525,7 @@ module picorv32 #( reg_op2 <= cpuregs_rs2; (* parallel_case *) case (1'b1) - is_sb_sh_sw: begin + is_sb_sh_sw && !instr_trap: begin cpu_state <= cpu_state_stmem; mem_do_rinst <= 1; end |