Skip to content

Commit

Permalink
Support single slave interface
Browse files Browse the repository at this point in the history
  • Loading branch information
alexforencich committed Aug 23, 2018
1 parent f1fb5b3 commit 4f01dfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rtl/axi_interconnect.v
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ wire grant_valid;
wire [CL_S_COUNT:0] grant_encoded;

wire read = grant_encoded[0];
wire [CL_S_COUNT-1:0] s_select = grant_encoded[CL_S_COUNT:1];
wire [(CL_S_COUNT > 0 ? CL_S_COUNT-1 : 0):0] s_select = grant_encoded >> 1;

arbiter #(
.PORTS(S_COUNT*2),
Expand Down
2 changes: 1 addition & 1 deletion rtl/axil_interconnect.v
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ wire grant_valid;
wire [CL_S_COUNT:0] grant_encoded;

wire read = grant_encoded[0];
wire [CL_S_COUNT-1:0] s_select = grant_encoded[CL_S_COUNT:1];
wire [(CL_S_COUNT > 0 ? CL_S_COUNT-1 : 0):0] s_select = grant_encoded >> 1;

arbiter #(
.PORTS(S_COUNT*2),
Expand Down

0 comments on commit 4f01dfb

Please sign in to comment.