Skip to content

Commit

Permalink
[tracer] Fix reporting of load/store data
Browse files Browse the repository at this point in the history
Modify tracer to use the appropriate read/write masks when logging
load/store traffic from the Load Store Unit.

Signed-off-by: Adrian Lees <[email protected]>
  • Loading branch information
alees24 committed Feb 17, 2024
1 parent ea1a208 commit 5a8a1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl/ibex_tracer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ module ibex_tracer (
if ((data_accessed & MEM) != 0) begin
$fwrite(fh, " PA:0x%08x", rvfi_mem_addr);

if (rvfi_mem_rmask != 4'b0000) begin
if (rvfi_mem_wmask != 4'b0000) begin
$fwrite(fh, " store:0x%08x", rvfi_mem_wdata);
end
if (rvfi_mem_wmask != 4'b0000) begin
if (rvfi_mem_rmask != 4'b0000) begin
$fwrite(fh, " load:0x%08x", rvfi_mem_rdata);
end
end
Expand Down

0 comments on commit 5a8a1a9

Please sign in to comment.