From 025e76d2f15b88c241e9f6897986b4238fd11afe Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Fri, 23 Aug 2024 16:40:18 +0200 Subject: [PATCH] hw: Add timestamp to illegal instruction message --- hw/snitch/src/snitch.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/snitch/src/snitch.sv b/hw/snitch/src/snitch.sv index 2c8069891..5fc881c55 100644 --- a/hw/snitch/src/snitch.sv +++ b/hw/snitch/src/snitch.sv @@ -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