Skip to content

Commit

Permalink
Fix connect logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexforencich committed Aug 23, 2018
1 parent 4f01dfb commit 07a4da3
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 @@ -498,7 +498,7 @@ always @* begin

match = 1'b0;
for (i = 0; i < M_COUNT; i = i + 1) begin
if (M_ADDR_WIDTH[i*32 +: 32] && ((read ? M_CONNECT_READ : M_CONNECT_WRITE) & (1 << (s_select*S_COUNT+i))) && (axi_addr_reg >> M_ADDR_WIDTH[i*32 +: 32]) == (M_BASE_ADDR[i*ADDR_WIDTH +: ADDR_WIDTH] >> M_ADDR_WIDTH[i*32 +: 32])) begin
if (M_ADDR_WIDTH[i*32 +: 32] && ((read ? M_CONNECT_READ : M_CONNECT_WRITE) & (1 << (s_select+i*S_COUNT))) && (axi_addr_reg >> M_ADDR_WIDTH[i*32 +: 32]) == (M_BASE_ADDR[i*ADDR_WIDTH +: ADDR_WIDTH] >> M_ADDR_WIDTH[i*32 +: 32])) begin
m_select_next = i;
match = 1'b1;
end
Expand Down
2 changes: 1 addition & 1 deletion rtl/axil_interconnect.v
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ always @* begin

match = 1'b0;
for (i = 0; i < M_COUNT; i = i + 1) begin
if (M_ADDR_WIDTH[i*32 +: 32] && ((read ? M_CONNECT_READ : M_CONNECT_WRITE) & (1 << (s_select*S_COUNT+i))) && (axil_addr_reg >> M_ADDR_WIDTH[i*32 +: 32]) == (M_BASE_ADDR[i*ADDR_WIDTH +: ADDR_WIDTH] >> M_ADDR_WIDTH[i*32 +: 32])) begin
if (M_ADDR_WIDTH[i*32 +: 32] && ((read ? M_CONNECT_READ : M_CONNECT_WRITE) & (1 << (s_select+i*S_COUNT))) && (axil_addr_reg >> M_ADDR_WIDTH[i*32 +: 32]) == (M_BASE_ADDR[i*ADDR_WIDTH +: ADDR_WIDTH] >> M_ADDR_WIDTH[i*32 +: 32])) begin
m_select_next = i;
match = 1'b1;
end
Expand Down

0 comments on commit 07a4da3

Please sign in to comment.