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:
Philipp Wagner 2019-04-05 11:33:35 +01:00
parent 0b8b6b6d96
commit 4d0d59db8e

View file

@ -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