Skip to content

Commit

Permalink
fixed illegal instruction warning in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kliuMsft committed May 10, 2024
1 parent 83a872e commit 5cbf2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/ibex_controller.sv
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ module ibex_controller #(
// glitches
always_ff @(negedge clk_i) begin
// print warning in case of decoding errors
if ((ctrl_fsm_cs == DECODE) && instr_valid_i && !instr_fetch_err_i && illegal_insn_d) begin
if ((ctrl_fsm_cs == DECODE) && instr_valid_i && !instr_fetch_err_i && !wb_exception_o && illegal_insn_d) begin
$display("%t: Illegal instruction (hart %0x) at PC 0x%h: 0x%h", $time, ibex_core.hart_id_i,
ibex_id_stage.pc_id_i, ibex_id_stage.instr_rdata_i);
end
Expand Down

0 comments on commit 5cbf2b9

Please sign in to comment.