Ignore read data from failed SBA accesses

This commit is contained in:
Luke Wren 2022-07-03 20:58:01 +01:00
parent c7a32c4d00
commit cac98568e6
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ always @ (posedge clk or negedge rst_n) begin
end else if (HAVE_SBA) begin
if (dmi_write && dmi_regaddr == ADDR_SBDATA0 && !sbbusy) begin
sbdata <= dmi_pwdata;
end else if (sbus_vld && sbus_rdy && !sbus_write) begin
end else if (sbus_vld && sbus_rdy && !sbus_write && !sbus_err) begin
// Make sure the lower byte lanes see appropriately shifted data as
// long as the transfer is naturally aligned
sbdata <= sbaddress[1:0] == 2'b01 ? {sbus_rdata[31:8], sbus_rdata[15:8]} :