Skip to content

Commit

Permalink
eth: Use unpacked arrays for multidimensional ports
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Forencich <[email protected]>
  • Loading branch information
alexforencich committed Mar 7, 2025
1 parent 6e4988f commit ed9e8ff
Show file tree
Hide file tree
Showing 40 changed files with 408 additions and 440 deletions.
11 changes: 5 additions & 6 deletions example/ADM_PCIE_9V3/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{CNT{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{CNT{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -223,11 +222,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{CNT{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{CNT{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{CNT{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/Alveo/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,11 @@ for (genvar n = 0; n < GTY_QUAD_CNT; n = n + 1) begin : gty_quad
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{CNT{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{CNT{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -273,11 +272,11 @@ for (genvar n = 0; n < GTY_QUAD_CNT; n = n + 1) begin : gty_quad
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{CNT{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{CNT{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{CNT{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/KCU105/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,11 @@ end else begin : sfp_mac
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{2{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{2{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -502,11 +501,11 @@ end else begin : sfp_mac
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{2{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{2{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{2{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/KR260/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,11 @@ end else begin : sfp_mac
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{1{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{1{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -447,11 +446,11 @@ end else begin : sfp_mac
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{1{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{1{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{1{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/Nexus_K3P_Q/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{CNT{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{CNT{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -242,11 +241,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{CNT{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{CNT{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{CNT{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/Nexus_K3P_S/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,11 @@ sfp_mac_inst (
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{2{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{2{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -223,11 +222,11 @@ sfp_mac_inst (
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{2{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{2{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{2{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/VCU108/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,11 @@ qsfp_mac_inst (
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{4{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{4{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -346,11 +345,11 @@ qsfp_mac_inst (
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{4{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{4{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{4{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/VCU118/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{CNT{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{CNT{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -541,11 +540,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{CNT{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{CNT{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{CNT{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/ZCU102/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,11 @@ end else begin : sfp_mac
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{4{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{4{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -573,11 +572,11 @@ end else begin : sfp_mac
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{4{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{4{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{4{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/ZCU106/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,11 @@ end else begin : sfp_mac
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{2{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{2{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -415,11 +414,11 @@ end else begin : sfp_mac
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{2{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{2{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{2{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/ZCU111/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,11 @@ sfp_mac_inst (
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{4{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{4{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -251,11 +250,11 @@ sfp_mac_inst (
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{4{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{4{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{4{'0}}),

/*
* Pause interface
Expand Down
11 changes: 5 additions & 6 deletions example/fb2CG/fpga/rtl/fpga_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* PTP clock
*/
.tx_ptp_ts('0),
.tx_ptp_ts('{CNT{'0}}),
.tx_ptp_ts_step('0),
.rx_ptp_ts('0),
.rx_ptp_ts('{CNT{'0}}),
.rx_ptp_ts_step('0),


/*
* Link-level Flow Control (LFC) (IEEE 802.3 annex 31B PAUSE)
*/
Expand All @@ -263,11 +262,11 @@ for (genvar n = 0; n < 2; n = n + 1) begin : gty_quad
/*
* Priority Flow Control (PFC) (IEEE 802.3 annex 31D PFC)
*/
.tx_pfc_req('0),
.tx_pfc_req('{CNT{'0}}),
.tx_pfc_resend('0),
.rx_pfc_en('0),
.rx_pfc_en('{CNT{'0}}),
.rx_pfc_req(),
.rx_pfc_ack('0),
.rx_pfc_ack('{CNT{'0}}),

/*
* Pause interface
Expand Down
4 changes: 2 additions & 2 deletions rtl/eth/taxi_eth_mac_10g.sv
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ module taxi_eth_mac_10g #
input wire logic [15:0] cfg_tx_pfc_eth_type = 16'h8808,
input wire logic [15:0] cfg_tx_pfc_opcode = 16'h0101,
input wire logic cfg_tx_pfc_en = 1'b0,
input wire logic [7:0][15:0] cfg_tx_pfc_quanta = '{8{16'hffff}},
input wire logic [7:0][15:0] cfg_tx_pfc_refresh = '{8{16'h7fff}},
input wire logic [15:0] cfg_tx_pfc_quanta[8] = '{8{16'hffff}},
input wire logic [15:0] cfg_tx_pfc_refresh[8] = '{8{16'h7fff}},
input wire logic [15:0] cfg_rx_lfc_opcode = 16'h0001,
input wire logic cfg_rx_lfc_en = 1'b0,
input wire logic [15:0] cfg_rx_pfc_opcode = 16'h0101,
Expand Down
Loading

0 comments on commit ed9e8ff

Please sign in to comment.