mirror of
https://github.com/alexforencich/verilog-axi.git
synced 2025-01-28 07:02:56 +08:00
Support single slave interface
This commit is contained in:
parent
f1fb5b368c
commit
4f01dfb7d5
@ -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),
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user