mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 21:17:59 -04:00
Identify source of display() in cve2_controller.sv
Adding the "%m" formatter to the $display message makes it easy to identify the source of the message.
This commit is contained in:
parent
066ff47261
commit
e6cc750fc8
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ module cve2_controller #(
|
|||
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
|
||||
$display("%t: Illegal instruction (hart %0x) at PC 0x%h: 0x%h", $time, cve2_core.hart_id_i,
|
||||
$display("%m @ %t: Illegal instruction (hart %0x) at PC 0x%h: 0x%h", $time, cve2_core.hart_id_i,
|
||||
cve2_id_stage.pc_id_i, cve2_id_stage.instr_rdata_i);
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue