Skip to content

Commit 59a979a

Browse files
committed
Add parameters to testbench
1 parent 8d9ed66 commit 59a979a

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

tb/test_axis_arb_mux_4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def bench():
5555
DEST_WIDTH = 8
5656
USER_ENABLE = 1
5757
USER_WIDTH = 1
58+
ARB_TYPE = "PRIORITY"
59+
LSB_PRIORITY = "HIGH"
5860

5961
# Inputs
6062
clk = Signal(bool(0))

tb/test_axis_arb_mux_4.v

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ parameter DEST_ENABLE = 1;
4242
parameter DEST_WIDTH = 8;
4343
parameter USER_ENABLE = 1;
4444
parameter USER_WIDTH = 1;
45+
parameter ARB_TYPE = "PRIORITY";
46+
parameter LSB_PRIORITY = "HIGH";
4547

4648
// Inputs
4749
reg clk = 0;
@@ -110,7 +112,9 @@ axis_arb_mux #(
110112
.DEST_ENABLE(DEST_ENABLE),
111113
.DEST_WIDTH(DEST_WIDTH),
112114
.USER_ENABLE(USER_ENABLE),
113-
.USER_WIDTH(USER_WIDTH)
115+
.USER_WIDTH(USER_WIDTH),
116+
.ARB_TYPE(ARB_TYPE),
117+
.LSB_PRIORITY(LSB_PRIORITY)
114118
)
115119
UUT (
116120
.clk(clk),

tb/test_axis_arb_mux_4_64.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def bench():
5555
DEST_WIDTH = 8
5656
USER_ENABLE = 1
5757
USER_WIDTH = 1
58+
ARB_TYPE = "PRIORITY"
59+
LSB_PRIORITY = "HIGH"
5860

5961
# Inputs
6062
clk = Signal(bool(0))

tb/test_axis_arb_mux_4_64.v

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ parameter DEST_ENABLE = 1;
4242
parameter DEST_WIDTH = 8;
4343
parameter USER_ENABLE = 1;
4444
parameter USER_WIDTH = 1;
45+
parameter ARB_TYPE = "PRIORITY";
46+
parameter LSB_PRIORITY = "HIGH";
4547

4648
// Inputs
4749
reg clk = 0;
@@ -110,7 +112,9 @@ axis_arb_mux #(
110112
.DEST_ENABLE(DEST_ENABLE),
111113
.DEST_WIDTH(DEST_WIDTH),
112114
.USER_ENABLE(USER_ENABLE),
113-
.USER_WIDTH(USER_WIDTH)
115+
.USER_WIDTH(USER_WIDTH),
116+
.ARB_TYPE(ARB_TYPE),
117+
.LSB_PRIORITY(LSB_PRIORITY)
114118
)
115119
UUT (
116120
.clk(clk),

0 commit comments

Comments
 (0)