Skip to content

Commit

Permalink
axi_sub_arb: Fix arbiter read grant condition
Browse files Browse the repository at this point in the history
When 'r_pri' is not set, read operation should be granted only if
a read 'r_dv' is pending and there's no required write action 'w_dv'.

Signed-off-by: Wiktoria Kuna <wkuna@antmicro.com>
  • Loading branch information
wkkuna authored and calebofearth committed Jul 25, 2024
1 parent 3bcc3b8 commit 2faf5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axi/rtl/axi_sub_arb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module axi_sub_arb import axi_pkg::*; #(
// 3'b111: r_win = 1;
// endcase
if (r_pri) r_win = r_dv || !w_dv;
else r_win = w_dv || !r_dv;
else r_win = r_dv && !w_dv;
end

always_comb begin
Expand Down

0 comments on commit 2faf5cc

Please sign in to comment.