mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 05:17:12 -04:00
Include executed instruction in dbg message
If an illegal instruction is executed we display a message in simulation. This message now also contains the instruction itself, not only the program counter.
This commit is contained in:
parent
0b8b6b6d96
commit
4d0d59db8e
1 changed files with 2 additions and 2 deletions
|
@ -128,8 +128,8 @@ module ibex_controller (
|
|||
always_ff @(negedge clk) begin
|
||||
// print warning in case of decoding errors
|
||||
if (is_decoding_o && illegal_insn_i) begin
|
||||
$display("%t: Illegal instruction (core %0d) at PC 0x%h:", $time, ibex_core.core_id_i,
|
||||
ibex_id_stage.pc_id_i);
|
||||
$display("%t: Illegal instruction (core %0d) at PC 0x%h: 0x%h", $time, ibex_core.core_id_i,
|
||||
ibex_id_stage.pc_id_i, ibex_id_stage.instr_rdata_i);
|
||||
end
|
||||
end
|
||||
// synopsys translate_on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue