We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bba241 commit 01415e0Copy full SHA for 01415e0
rtl/core/neorv32_cpu_control.vhd
@@ -816,9 +816,7 @@ begin
816
(trap_ctrl.exc_buf(exc_saccess_c) = '1') or (trap_ctrl.exc_buf(exc_laccess_c) = '1') or -- access exception
817
(trap_ctrl.exc_buf(exc_salign_c) = '1') or (trap_ctrl.exc_buf(exc_lalign_c) = '1') or -- alignment exception
818
(trap_ctrl.exc_buf(exc_illegal_c) = '1') then -- illegal instruction exception
819
- if (RISCV_ISA_Zaamo and (opcode(2) = opcode_amo_c(2))) or (opcode(5) = '0') then -- atomic operation / normal load
820
- ctrl_nxt.rf_wb_en <= '1'; -- allow write-back to register file (won't happen in case of exception)
821
- end if;
+ ctrl_nxt.rf_wb_en <= not ctrl.lsu_rw; -- write-back to register file if read operation (won't happen in case of exception)
822
exe_engine_nxt.state <= EX_DISPATCH;
823
end if;
824
0 commit comments