mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 21:39:13 -04:00
ID/EX stage: do not write to register file upon load errors
This commit fixes the write back FSM to not store values returned from memory to the register file when the LSU is reporting a load error. This bug was reported by @ivanmgribeiro. This commit resolves #162.
This commit is contained in:
parent
f12b94c2a2
commit
63702b3e75
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ module ibex_id_stage #(
|
|||
if ((data_req_dec & lsu_valid_i) | (~data_req_dec & ex_valid_i)) begin
|
||||
id_wb_fsm_ns = IDLE;
|
||||
instr_multicycle_done_n = 1'b1;
|
||||
regfile_we_wb = regfile_we_dec;
|
||||
regfile_we_wb = regfile_we_dec & ~lsu_load_err_i;
|
||||
instr_ret_o = 1'b1;
|
||||
end else begin
|
||||
stall_lsu = data_req_dec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue