Skip to content

Commit

Permalink
[rvfi] Only catch LSU RF write data if it's actually valid
Browse files Browse the repository at this point in the history
Previously, the interface was also catching the data returned by stores
which may be X.

Signed-off-by: Pirmin Vogel <[email protected]>
  • Loading branch information
vogelpi committed Jun 30, 2023
1 parent fbd070c commit f4ed142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/ibex_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ module ibex_core import ibex_pkg::*; #(

// Capture read data from LSU when it becomes valid
always_comb begin
if (lsu_resp_valid) begin
if (lsu_rdata_valid) begin
rvfi_mem_rdata_d = rf_wdata_lsu;
end else begin
rvfi_mem_rdata_d = rvfi_mem_rdata_q;
Expand Down

0 comments on commit f4ed142

Please sign in to comment.