From 49f527eae68a0618503f2754e34937092c941393 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Wed, 17 Apr 2024 17:32:04 +0200 Subject: [PATCH] hw: Log address on misaligned load/store --- 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 59723954a..2c8069891 100644 --- a/hw/snitch/src/snitch.sv +++ b/hw/snitch/src/snitch.sv @@ -2887,8 +2887,8 @@ module snitch import snitch_pkg::*; import riscv_instr::*; #( // pragma translate_off always_ff @(posedge clk_i) begin if (!rst_i && (ld_addr_misaligned || st_addr_misaligned) && valid_instr) begin - $display("%t [Misaligned Load/Store Core %0d] PC: %h Data: %h", - $time, hart_id_i, inst_addr_o, inst_data_i); + $display("%t [Misaligned Load/Store Core %0d] PC: %h Data: %h Addr: %h", + $time, hart_id_i, inst_addr_o, inst_data_i, alu_result); end end // pragma translate_on