Skip to content

Commit

Permalink
Only latch err from component when the access is allowed (i.e. not an…
Browse files Browse the repository at this point in the history
… incomplete EX access)
  • Loading branch information
calebofearth committed Jul 25, 2024
1 parent a9a17f7 commit b481ac2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/axi/rtl/axi_sub_wr.sv
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ module axi_sub_wr import axi_pkg::*; #(
txn_allow <= !EX_EN || !req_ctx.lock || (ex_active[req_ctx.id] && req_matches_ex);
txn_err <= 1'b0;
end
else if (dv_pre && !hld) begin
else if (dv && !hld) begin
txn_ctx.addr <= txn_addr_nxt;
txn_ctx.burst <= txn_ctx.burst;
txn_ctx.size <= txn_ctx.size;
Expand Down Expand Up @@ -284,9 +284,9 @@ module axi_sub_wr import axi_pkg::*; #(
// requests are stalled (AWREADY=0) until this buffer is ready.
always_comb begin
rp_valid[0] = txn_final_beat;
rp_resp[0] = txn_err || err ? AXI_RESP_SLVERR :
txn_ctx.lock && txn_allow ? AXI_RESP_EXOKAY :
AXI_RESP_OKAY;
rp_resp[0] = txn_allow && (txn_err || err) ? AXI_RESP_SLVERR :
txn_allow && txn_ctx.lock ? AXI_RESP_EXOKAY :
AXI_RESP_OKAY;
rp_id[0] = txn_ctx.id;
end

Expand Down

0 comments on commit b481ac2

Please sign in to comment.