Skip to content

Commit

Permalink
Remove string parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
alexforencich committed Jun 3, 2021
1 parent 846183b commit 5415c41
Show file tree
Hide file tree
Showing 22 changed files with 74 additions and 72 deletions.
4 changes: 2 additions & 2 deletions example/VCU108/fpga_10g/rtl/fpga_core.v
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ axis_switch #(
.M_CONNECT({3{3'b111}}),
.S_REG_TYPE(0),
.M_REG_TYPE(2),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
axis_switch_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions example/VCU118/fpga_10g/rtl/fpga_core.v
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ axis_switch #(
.M_CONNECT({3{3'b111}}),
.S_REG_TYPE(0),
.M_REG_TYPE(2),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
axis_switch_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions example/VCU118/fpga_25g/rtl/fpga_core.v
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ axis_switch #(
.M_CONNECT({3{3'b111}}),
.S_REG_TYPE(0),
.M_REG_TYPE(2),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
axis_switch_inst (
.clk(clk),
Expand Down
15 changes: 8 additions & 7 deletions rtl/eth_arb_mux.v
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ module eth_arb_mux #
parameter DEST_WIDTH = 8,
parameter USER_ENABLE = 1,
parameter USER_WIDTH = 1,
// arbitration type: "PRIORITY" or "ROUND_ROBIN"
parameter ARB_TYPE = "PRIORITY",
// LSB priority: "LOW", "HIGH"
parameter LSB_PRIORITY = "HIGH"
// select round robin arbitration
parameter ARB_TYPE_ROUND_ROBIN = 0,
// LSB priority selection
parameter ARB_LSB_HIGH_PRIORITY = 1
)
(
input wire clk,
Expand Down Expand Up @@ -135,9 +135,10 @@ wire [USER_WIDTH-1:0] current_s_tuser = s_eth_payload_axis_tuser[grant_encoded*
// arbiter instance
arbiter #(
.PORTS(S_COUNT),
.TYPE(ARB_TYPE),
.BLOCK("ACKNOWLEDGE"),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_BLOCK(1),
.ARB_BLOCK_ACK(1),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
arb_inst (
.clk(clk),
Expand Down
15 changes: 8 additions & 7 deletions rtl/ip_arb_mux.v
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ module ip_arb_mux #
parameter DEST_WIDTH = 8,
parameter USER_ENABLE = 1,
parameter USER_WIDTH = 1,
// arbitration type: "PRIORITY" or "ROUND_ROBIN"
parameter ARB_TYPE = "PRIORITY",
// LSB priority: "LOW", "HIGH"
parameter LSB_PRIORITY = "HIGH"
// select round robin arbitration
parameter ARB_TYPE_ROUND_ROBIN = 0,
// LSB priority selection
parameter ARB_LSB_HIGH_PRIORITY = 1
)
(
input wire clk,
Expand Down Expand Up @@ -187,9 +187,10 @@ wire [USER_WIDTH-1:0] current_s_tuser = s_ip_payload_axis_tuser[grant_encoded*U
// arbiter instance
arbiter #(
.PORTS(S_COUNT),
.TYPE(ARB_TYPE),
.BLOCK("ACKNOWLEDGE"),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_BLOCK(1),
.ARB_BLOCK_ACK(1),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
arb_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions rtl/ip_complete.v
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ eth_arb_mux #(
.DEST_ENABLE(0),
.USER_ENABLE(1),
.USER_WIDTH(1),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
eth_arb_mux_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions rtl/ip_complete_64.v
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ eth_arb_mux #(
.DEST_ENABLE(0),
.USER_ENABLE(1),
.USER_WIDTH(1),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
eth_arb_mux_inst (
.clk(clk),
Expand Down
15 changes: 8 additions & 7 deletions rtl/udp_arb_mux.v
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ module udp_arb_mux #
parameter DEST_WIDTH = 8,
parameter USER_ENABLE = 1,
parameter USER_WIDTH = 1,
// arbitration type: "PRIORITY" or "ROUND_ROBIN"
parameter ARB_TYPE = "PRIORITY",
// LSB priority: "LOW", "HIGH"
parameter LSB_PRIORITY = "HIGH"
// select round robin arbitration
parameter ARB_TYPE_ROUND_ROBIN = 0,
// LSB priority selection
parameter ARB_LSB_HIGH_PRIORITY = 1
)
(
input wire clk,
Expand Down Expand Up @@ -203,9 +203,10 @@ wire [USER_WIDTH-1:0] current_s_tuser = s_udp_payload_axis_tuser[grant_encoded*
// arbiter instance
arbiter #(
.PORTS(S_COUNT),
.TYPE(ARB_TYPE),
.BLOCK("ACKNOWLEDGE"),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_BLOCK(1),
.ARB_BLOCK_ACK(1),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
arb_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions rtl/udp_complete.v
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ ip_arb_mux #(
.DEST_ENABLE(0),
.USER_ENABLE(1),
.USER_WIDTH(1),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
ip_arb_mux_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions rtl/udp_complete_64.v
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ ip_arb_mux #(
.DEST_ENABLE(0),
.USER_ENABLE(1),
.USER_WIDTH(1),
.ARB_TYPE("PRIORITY"),
.LSB_PRIORITY("HIGH")
.ARB_TYPE_ROUND_ROBIN(0),
.ARB_LSB_HIGH_PRIORITY(1)
)
ip_arb_mux_inst (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions tb/test_eth_arb_mux_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def bench():
DEST_WIDTH = 8
USER_ENABLE = 1
USER_WIDTH = 1
ARB_TYPE = "PRIORITY"
LSB_PRIORITY = "HIGH"
ARB_TYPE_ROUND_ROBIN = 0
ARB_LSB_HIGH_PRIORITY = 1

# Inputs
clk = Signal(bool(0))
Expand Down
8 changes: 4 additions & 4 deletions tb/test_eth_arb_mux_4.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
parameter DEST_WIDTH = 8;
parameter USER_ENABLE = 1;
parameter USER_WIDTH = 1;
parameter ARB_TYPE = "PRIORITY";
parameter LSB_PRIORITY = "HIGH";
parameter ARB_TYPE_ROUND_ROBIN = 0;
parameter ARB_LSB_HIGH_PRIORITY = 1;

// Inputs
reg clk = 0;
Expand Down Expand Up @@ -133,8 +133,8 @@ eth_arb_mux #(
.DEST_WIDTH(DEST_WIDTH),
.USER_ENABLE(USER_ENABLE),
.USER_WIDTH(USER_WIDTH),
.ARB_TYPE(ARB_TYPE),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
UUT (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions tb/test_eth_arb_mux_64_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def bench():
DEST_WIDTH = 8
USER_ENABLE = 1
USER_WIDTH = 1
ARB_TYPE = "PRIORITY"
LSB_PRIORITY = "HIGH"
ARB_TYPE_ROUND_ROBIN = 0
ARB_LSB_HIGH_PRIORITY = 1

# Inputs
clk = Signal(bool(0))
Expand Down
8 changes: 4 additions & 4 deletions tb/test_eth_arb_mux_64_4.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
parameter DEST_WIDTH = 8;
parameter USER_ENABLE = 1;
parameter USER_WIDTH = 1;
parameter ARB_TYPE = "PRIORITY";
parameter LSB_PRIORITY = "HIGH";
parameter ARB_TYPE_ROUND_ROBIN = 0;
parameter ARB_LSB_HIGH_PRIORITY = 1;

// Inputs
reg clk = 0;
Expand Down Expand Up @@ -133,8 +133,8 @@ eth_arb_mux #(
.DEST_WIDTH(DEST_WIDTH),
.USER_ENABLE(USER_ENABLE),
.USER_WIDTH(USER_WIDTH),
.ARB_TYPE(ARB_TYPE),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
UUT (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions tb/test_ip_arb_mux_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def bench():
DEST_WIDTH = 8
USER_ENABLE = 1
USER_WIDTH = 1
ARB_TYPE = "PRIORITY"
LSB_PRIORITY = "HIGH"
ARB_TYPE_ROUND_ROBIN = 0
ARB_LSB_HIGH_PRIORITY = 1

# Inputs
clk = Signal(bool(0))
Expand Down
8 changes: 4 additions & 4 deletions tb/test_ip_arb_mux_4.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
parameter DEST_WIDTH = 8;
parameter USER_ENABLE = 1;
parameter USER_WIDTH = 1;
parameter ARB_TYPE = "PRIORITY";
parameter LSB_PRIORITY = "HIGH";
parameter ARB_TYPE_ROUND_ROBIN = 0;
parameter ARB_LSB_HIGH_PRIORITY = 1;

// Inputs
reg clk = 0;
Expand Down Expand Up @@ -185,8 +185,8 @@ ip_arb_mux #(
.DEST_WIDTH(DEST_WIDTH),
.USER_ENABLE(USER_ENABLE),
.USER_WIDTH(USER_WIDTH),
.ARB_TYPE(ARB_TYPE),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
UUT (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions tb/test_ip_arb_mux_64_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def bench():
DEST_WIDTH = 8
USER_ENABLE = 1
USER_WIDTH = 1
ARB_TYPE = "PRIORITY"
LSB_PRIORITY = "HIGH"
ARB_TYPE_ROUND_ROBIN = 0
ARB_LSB_HIGH_PRIORITY = 1

# Inputs
clk = Signal(bool(0))
Expand Down
8 changes: 4 additions & 4 deletions tb/test_ip_arb_mux_64_4.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
parameter DEST_WIDTH = 8;
parameter USER_ENABLE = 1;
parameter USER_WIDTH = 1;
parameter ARB_TYPE = "PRIORITY";
parameter LSB_PRIORITY = "HIGH";
parameter ARB_TYPE_ROUND_ROBIN = 0;
parameter ARB_LSB_HIGH_PRIORITY = 1;

// Inputs
reg clk = 0;
Expand Down Expand Up @@ -185,8 +185,8 @@ ip_arb_mux #(
.DEST_WIDTH(DEST_WIDTH),
.USER_ENABLE(USER_ENABLE),
.USER_WIDTH(USER_WIDTH),
.ARB_TYPE(ARB_TYPE),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
UUT (
.clk(clk),
Expand Down
4 changes: 2 additions & 2 deletions tb/test_udp_arb_mux_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def bench():
DEST_WIDTH = 8
USER_ENABLE = 1
USER_WIDTH = 1
ARB_TYPE = "PRIORITY"
LSB_PRIORITY = "HIGH"
ARB_TYPE_ROUND_ROBIN = 0
ARB_LSB_HIGH_PRIORITY = 1

# Inputs
clk = Signal(bool(0))
Expand Down
8 changes: 4 additions & 4 deletions tb/test_udp_arb_mux_4.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
parameter DEST_WIDTH = 8;
parameter USER_ENABLE = 1;
parameter USER_WIDTH = 1;
parameter ARB_TYPE = "PRIORITY";
parameter LSB_PRIORITY = "HIGH";
parameter ARB_TYPE_ROUND_ROBIN = 0;
parameter ARB_LSB_HIGH_PRIORITY = 1;

// Inputs
reg clk = 0;
Expand Down Expand Up @@ -201,8 +201,8 @@ udp_arb_mux #(
.DEST_WIDTH(DEST_WIDTH),
.USER_ENABLE(USER_ENABLE),
.USER_WIDTH(USER_WIDTH),
.ARB_TYPE(ARB_TYPE),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
UUT (
.clk(clk),
Expand Down
5 changes: 2 additions & 3 deletions tb/test_udp_arb_mux_64_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def bench():
DEST_WIDTH = 8
USER_ENABLE = 1
USER_WIDTH = 1
ARB_TYPE = "PRIORITY"
LSB_PRIORITY = "HIGH"

ARB_TYPE_ROUND_ROBIN = 0
ARB_LSB_HIGH_PRIORITY = 1
# Inputs
clk = Signal(bool(0))
rst = Signal(bool(0))
Expand Down
8 changes: 4 additions & 4 deletions tb/test_udp_arb_mux_64_4.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ parameter DEST_ENABLE = 1;
parameter DEST_WIDTH = 8;
parameter USER_ENABLE = 1;
parameter USER_WIDTH = 1;
parameter ARB_TYPE = "PRIORITY";
parameter LSB_PRIORITY = "HIGH";
parameter ARB_TYPE_ROUND_ROBIN = 0;
parameter ARB_LSB_HIGH_PRIORITY = 1;

// Inputs
reg clk = 0;
Expand Down Expand Up @@ -201,8 +201,8 @@ udp_arb_mux #(
.DEST_WIDTH(DEST_WIDTH),
.USER_ENABLE(USER_ENABLE),
.USER_WIDTH(USER_WIDTH),
.ARB_TYPE(ARB_TYPE),
.LSB_PRIORITY(LSB_PRIORITY)
.ARB_TYPE_ROUND_ROBIN(ARB_TYPE_ROUND_ROBIN),
.ARB_LSB_HIGH_PRIORITY(ARB_LSB_HIGH_PRIORITY)
)
UUT (
.clk(clk),
Expand Down

0 comments on commit 5415c41

Please sign in to comment.