Support single slave interface

This commit is contained in:
Alex Forencich 2018-08-23 14:43:57 -07:00
parent f1fb5b368c
commit 4f01dfb7d5
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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),