File tree 19 files changed +68
-66
lines changed
19 files changed +68
-66
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ module eth_arb_mux #
41
41
parameter DEST_WIDTH = 8 ,
42
42
parameter USER_ENABLE = 1 ,
43
43
parameter USER_WIDTH = 1 ,
44
- // arbitration type: "PRIORITY" or "ROUND_ROBIN"
45
- parameter ARB_TYPE = "PRIORITY" ,
46
- // LSB priority: "LOW", "HIGH"
47
- parameter LSB_PRIORITY = "HIGH"
44
+ // select round robin arbitration
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ,
46
+ // LSB priority selection
47
+ parameter ARB_LSB_HIGH_PRIORITY = 1
48
48
)
49
49
(
50
50
input wire clk,
@@ -135,9 +135,10 @@ wire [USER_WIDTH-1:0] current_s_tuser = s_eth_payload_axis_tuser[grant_encoded*
135
135
// arbiter instance
136
136
arbiter #(
137
137
.PORTS(S_COUNT),
138
- .TYPE(ARB_TYPE),
139
- .BLOCK("ACKNOWLEDGE" ),
140
- .LSB_PRIORITY(LSB_PRIORITY)
138
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
139
+ .ARB_BLOCK(1 ),
140
+ .ARB_BLOCK_ACK(1 ),
141
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
141
142
)
142
143
arb_inst (
143
144
.clk(clk),
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ module ip_arb_mux #
41
41
parameter DEST_WIDTH = 8 ,
42
42
parameter USER_ENABLE = 1 ,
43
43
parameter USER_WIDTH = 1 ,
44
- // arbitration type: "PRIORITY" or "ROUND_ROBIN"
45
- parameter ARB_TYPE = "PRIORITY" ,
46
- // LSB priority: "LOW", "HIGH"
47
- parameter LSB_PRIORITY = "HIGH"
44
+ // select round robin arbitration
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ,
46
+ // LSB priority selection
47
+ parameter ARB_LSB_HIGH_PRIORITY = 1
48
48
)
49
49
(
50
50
input wire clk,
@@ -187,9 +187,10 @@ wire [USER_WIDTH-1:0] current_s_tuser = s_ip_payload_axis_tuser[grant_encoded*U
187
187
// arbiter instance
188
188
arbiter #(
189
189
.PORTS(S_COUNT),
190
- .TYPE(ARB_TYPE),
191
- .BLOCK("ACKNOWLEDGE" ),
192
- .LSB_PRIORITY(LSB_PRIORITY)
190
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
191
+ .ARB_BLOCK(1 ),
192
+ .ARB_BLOCK_ACK(1 ),
193
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
193
194
)
194
195
arb_inst (
195
196
.clk(clk),
Original file line number Diff line number Diff line change @@ -261,8 +261,8 @@ eth_arb_mux #(
261
261
.DEST_ENABLE(0 ),
262
262
.USER_ENABLE(1 ),
263
263
.USER_WIDTH(1 ),
264
- .ARB_TYPE( "PRIORITY" ),
265
- .LSB_PRIORITY( "HIGH" )
264
+ .ARB_TYPE_ROUND_ROBIN( 0 ),
265
+ .ARB_LSB_HIGH_PRIORITY( 1 )
266
266
)
267
267
eth_arb_mux_inst (
268
268
.clk(clk),
Original file line number Diff line number Diff line change @@ -271,8 +271,8 @@ eth_arb_mux #(
271
271
.DEST_ENABLE(0 ),
272
272
.USER_ENABLE(1 ),
273
273
.USER_WIDTH(1 ),
274
- .ARB_TYPE( "PRIORITY" ),
275
- .LSB_PRIORITY( "HIGH" )
274
+ .ARB_TYPE_ROUND_ROBIN( 0 ),
275
+ .ARB_LSB_HIGH_PRIORITY( 1 )
276
276
)
277
277
eth_arb_mux_inst (
278
278
.clk(clk),
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ module udp_arb_mux #
41
41
parameter DEST_WIDTH = 8 ,
42
42
parameter USER_ENABLE = 1 ,
43
43
parameter USER_WIDTH = 1 ,
44
- // arbitration type: "PRIORITY" or "ROUND_ROBIN"
45
- parameter ARB_TYPE = "PRIORITY" ,
46
- // LSB priority: "LOW", "HIGH"
47
- parameter LSB_PRIORITY = "HIGH"
44
+ // select round robin arbitration
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ,
46
+ // LSB priority selection
47
+ parameter ARB_LSB_HIGH_PRIORITY = 1
48
48
)
49
49
(
50
50
input wire clk,
@@ -203,9 +203,10 @@ wire [USER_WIDTH-1:0] current_s_tuser = s_udp_payload_axis_tuser[grant_encoded*
203
203
// arbiter instance
204
204
arbiter #(
205
205
.PORTS(S_COUNT),
206
- .TYPE(ARB_TYPE),
207
- .BLOCK("ACKNOWLEDGE" ),
208
- .LSB_PRIORITY(LSB_PRIORITY)
206
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
207
+ .ARB_BLOCK(1 ),
208
+ .ARB_BLOCK_ACK(1 ),
209
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
209
210
)
210
211
arb_inst (
211
212
.clk(clk),
Original file line number Diff line number Diff line change @@ -361,8 +361,8 @@ ip_arb_mux #(
361
361
.DEST_ENABLE(0 ),
362
362
.USER_ENABLE(1 ),
363
363
.USER_WIDTH(1 ),
364
- .ARB_TYPE( "PRIORITY" ),
365
- .LSB_PRIORITY( "HIGH" )
364
+ .ARB_TYPE_ROUND_ROBIN( 0 ),
365
+ .ARB_LSB_HIGH_PRIORITY( 1 )
366
366
)
367
367
ip_arb_mux_inst (
368
368
.clk(clk),
Original file line number Diff line number Diff line change @@ -373,8 +373,8 @@ ip_arb_mux #(
373
373
.DEST_ENABLE(0 ),
374
374
.USER_ENABLE(1 ),
375
375
.USER_WIDTH(1 ),
376
- .ARB_TYPE( "PRIORITY" ),
377
- .LSB_PRIORITY( "HIGH" )
376
+ .ARB_TYPE_ROUND_ROBIN( 0 ),
377
+ .ARB_LSB_HIGH_PRIORITY( 1 )
378
378
)
379
379
ip_arb_mux_inst (
380
380
.clk(clk),
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ def bench():
55
55
DEST_WIDTH = 8
56
56
USER_ENABLE = 1
57
57
USER_WIDTH = 1
58
- ARB_TYPE = "PRIORITY"
59
- LSB_PRIORITY = "HIGH"
58
+ ARB_TYPE_ROUND_ROBIN = 0
59
+ ARB_LSB_HIGH_PRIORITY = 1
60
60
61
61
# Inputs
62
62
clk = Signal (bool (0 ))
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
42
42
parameter DEST_WIDTH = 8 ;
43
43
parameter USER_ENABLE = 1 ;
44
44
parameter USER_WIDTH = 1 ;
45
- parameter ARB_TYPE = "PRIORITY" ;
46
- parameter LSB_PRIORITY = "HIGH" ;
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ;
46
+ parameter ARB_LSB_HIGH_PRIORITY = 1 ;
47
47
48
48
// Inputs
49
49
reg clk = 0 ;
@@ -133,8 +133,8 @@ eth_arb_mux #(
133
133
.DEST_WIDTH(DEST_WIDTH),
134
134
.USER_ENABLE(USER_ENABLE),
135
135
.USER_WIDTH(USER_WIDTH),
136
- .ARB_TYPE(ARB_TYPE ),
137
- .LSB_PRIORITY(LSB_PRIORITY )
136
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN ),
137
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY )
138
138
)
139
139
UUT (
140
140
.clk(clk),
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ def bench():
55
55
DEST_WIDTH = 8
56
56
USER_ENABLE = 1
57
57
USER_WIDTH = 1
58
- ARB_TYPE = "PRIORITY"
59
- LSB_PRIORITY = "HIGH"
58
+ ARB_TYPE_ROUND_ROBIN = 0
59
+ ARB_LSB_HIGH_PRIORITY = 1
60
60
61
61
# Inputs
62
62
clk = Signal (bool (0 ))
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
42
42
parameter DEST_WIDTH = 8 ;
43
43
parameter USER_ENABLE = 1 ;
44
44
parameter USER_WIDTH = 1 ;
45
- parameter ARB_TYPE = "PRIORITY" ;
46
- parameter LSB_PRIORITY = "HIGH" ;
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ;
46
+ parameter ARB_LSB_HIGH_PRIORITY = 1 ;
47
47
48
48
// Inputs
49
49
reg clk = 0 ;
@@ -133,8 +133,8 @@ eth_arb_mux #(
133
133
.DEST_WIDTH(DEST_WIDTH),
134
134
.USER_ENABLE(USER_ENABLE),
135
135
.USER_WIDTH(USER_WIDTH),
136
- .ARB_TYPE(ARB_TYPE ),
137
- .LSB_PRIORITY(LSB_PRIORITY )
136
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN ),
137
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY )
138
138
)
139
139
UUT (
140
140
.clk(clk),
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ def bench():
55
55
DEST_WIDTH = 8
56
56
USER_ENABLE = 1
57
57
USER_WIDTH = 1
58
- ARB_TYPE = "PRIORITY"
59
- LSB_PRIORITY = "HIGH"
58
+ ARB_TYPE_ROUND_ROBIN = 0
59
+ ARB_LSB_HIGH_PRIORITY = 1
60
60
61
61
# Inputs
62
62
clk = Signal (bool (0 ))
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
42
42
parameter DEST_WIDTH = 8 ;
43
43
parameter USER_ENABLE = 1 ;
44
44
parameter USER_WIDTH = 1 ;
45
- parameter ARB_TYPE = "PRIORITY" ;
46
- parameter LSB_PRIORITY = "HIGH" ;
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ;
46
+ parameter ARB_LSB_HIGH_PRIORITY = 1 ;
47
47
48
48
// Inputs
49
49
reg clk = 0 ;
@@ -185,8 +185,8 @@ ip_arb_mux #(
185
185
.DEST_WIDTH(DEST_WIDTH),
186
186
.USER_ENABLE(USER_ENABLE),
187
187
.USER_WIDTH(USER_WIDTH),
188
- .ARB_TYPE(ARB_TYPE ),
189
- .LSB_PRIORITY(LSB_PRIORITY )
188
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN ),
189
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY )
190
190
)
191
191
UUT (
192
192
.clk(clk),
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ def bench():
55
55
DEST_WIDTH = 8
56
56
USER_ENABLE = 1
57
57
USER_WIDTH = 1
58
- ARB_TYPE = "PRIORITY"
59
- LSB_PRIORITY = "HIGH"
58
+ ARB_TYPE_ROUND_ROBIN = 0
59
+ ARB_LSB_HIGH_PRIORITY = 1
60
60
61
61
# Inputs
62
62
clk = Signal (bool (0 ))
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
42
42
parameter DEST_WIDTH = 8 ;
43
43
parameter USER_ENABLE = 1 ;
44
44
parameter USER_WIDTH = 1 ;
45
- parameter ARB_TYPE = "PRIORITY" ;
46
- parameter LSB_PRIORITY = "HIGH" ;
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ;
46
+ parameter ARB_LSB_HIGH_PRIORITY = 1 ;
47
47
48
48
// Inputs
49
49
reg clk = 0 ;
@@ -185,8 +185,8 @@ ip_arb_mux #(
185
185
.DEST_WIDTH(DEST_WIDTH),
186
186
.USER_ENABLE(USER_ENABLE),
187
187
.USER_WIDTH(USER_WIDTH),
188
- .ARB_TYPE(ARB_TYPE ),
189
- .LSB_PRIORITY(LSB_PRIORITY )
188
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN ),
189
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY )
190
190
)
191
191
UUT (
192
192
.clk(clk),
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ def bench():
55
55
DEST_WIDTH = 8
56
56
USER_ENABLE = 1
57
57
USER_WIDTH = 1
58
- ARB_TYPE = "PRIORITY"
59
- LSB_PRIORITY = "HIGH"
58
+ ARB_TYPE_ROUND_ROBIN = 0
59
+ ARB_LSB_HIGH_PRIORITY = 1
60
60
61
61
# Inputs
62
62
clk = Signal (bool (0 ))
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
42
42
parameter DEST_WIDTH = 8 ;
43
43
parameter USER_ENABLE = 1 ;
44
44
parameter USER_WIDTH = 1 ;
45
- parameter ARB_TYPE = "PRIORITY" ;
46
- parameter LSB_PRIORITY = "HIGH" ;
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ;
46
+ parameter ARB_LSB_HIGH_PRIORITY = 1 ;
47
47
48
48
// Inputs
49
49
reg clk = 0 ;
@@ -201,8 +201,8 @@ udp_arb_mux #(
201
201
.DEST_WIDTH(DEST_WIDTH),
202
202
.USER_ENABLE(USER_ENABLE),
203
203
.USER_WIDTH(USER_WIDTH),
204
- .ARB_TYPE(ARB_TYPE ),
205
- .LSB_PRIORITY(LSB_PRIORITY )
204
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN ),
205
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY )
206
206
)
207
207
UUT (
208
208
.clk(clk),
Original file line number Diff line number Diff line change @@ -55,9 +55,8 @@ def bench():
55
55
DEST_WIDTH = 8
56
56
USER_ENABLE = 1
57
57
USER_WIDTH = 1
58
- ARB_TYPE = "PRIORITY"
59
- LSB_PRIORITY = "HIGH"
60
-
58
+ ARB_TYPE_ROUND_ROBIN = 0
59
+ ARB_LSB_HIGH_PRIORITY = 1
61
60
# Inputs
62
61
clk = Signal (bool (0 ))
63
62
rst = Signal (bool (0 ))
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
42
42
parameter DEST_WIDTH = 8 ;
43
43
parameter USER_ENABLE = 1 ;
44
44
parameter USER_WIDTH = 1 ;
45
- parameter ARB_TYPE = "PRIORITY" ;
46
- parameter LSB_PRIORITY = "HIGH" ;
45
+ parameter ARB_TYPE_ROUND_ROBIN = 0 ;
46
+ parameter ARB_LSB_HIGH_PRIORITY = 1 ;
47
47
48
48
// Inputs
49
49
reg clk = 0 ;
@@ -201,8 +201,8 @@ udp_arb_mux #(
201
201
.DEST_WIDTH(DEST_WIDTH),
202
202
.USER_ENABLE(USER_ENABLE),
203
203
.USER_WIDTH(USER_WIDTH),
204
- .ARB_TYPE(ARB_TYPE ),
205
- .LSB_PRIORITY(LSB_PRIORITY )
204
+ .ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN ),
205
+ .ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY )
206
206
)
207
207
UUT (
208
208
.clk(clk),
You can’t perform that action at this time.
0 commit comments