Skip to content

Commit

Permalink
hw: Log address on misaligned load/store
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 28, 2024
1 parent c95a0d8 commit 8e78fdc
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 @@ -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
Expand Down

0 comments on commit 8e78fdc

Please sign in to comment.