Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions dv/uvm/core_ibex/tests/core_ibex_test_lib.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1118,14 +1118,16 @@ class core_ibex_directed_test extends core_ibex_debug_intr_basic_test;

// Illegal instruction checker
virtual task check_illegal_insn(string exception_msg);
check_next_core_status(HANDLING_EXCEPTION, "Core did not jump to vectored exception handler", 10000);
check_next_core_status(ILLEGAL_INSTR_EXCEPTION, exception_msg, 10000);
check_mcause(1'b0, ExcCauseIllegalInsn);
// Ibex will wait to change the privilege mode until it is allowed to FLUSH. This happens because
// we are blocking the current instruction until the instruction from WB stage is ready.
// Ibex will wait to change the privilege mode until it is allowed to FLUSH. This happens
// because it is blocking the current instruction until the instruction from WB stage is ready.
wait (dut_vif.dut_cb.ctrl_fsm_cs == FLUSH);
clk_vif.wait_clks(2);
check_priv_mode(PRIV_LVL_M);
check_next_core_status(HANDLING_EXCEPTION,
"Core did not jump to vectored exception handler",
10000);
check_next_core_status(ILLEGAL_INSTR_EXCEPTION, exception_msg, 10000);
check_mcause(1'b0, ExcCauseIllegalInsn);
wait_ret("mret", 15000);
endtask

Expand Down
Loading