Skip to content

Commit

Permalink
hw: Add timestamp to illegal instruction message
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 28, 2024
1 parent 8e78fdc commit 025e76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/snitch/src/snitch.sv
Original file line number Diff line number Diff line change
Expand Up @@ -2241,8 +2241,8 @@ module snitch import snitch_pkg::*; import riscv_instr::*; #(
// pragma translate_off
always_ff @(posedge clk_i) begin
if (!rst_i && illegal_inst && valid_instr) begin
$display("[Illegal Instruction Core %0d] PC: %h Data: %h",
hart_id_i, inst_addr_o, inst_data_i);
$display("%t [Illegal Instruction Core %0d] PC: %h Data: %h",
$time, hart_id_i, inst_addr_o, inst_data_i);
end
end
// pragma translate_on
Expand Down

0 comments on commit 025e76d

Please sign in to comment.