eth: Parameter cleanup

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-06-13 19:28:21 -07:00
parent eae4d67367
commit 65eef8b5e8
7 changed files with 23 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ module taxi_eth_mac_25g_us #
// MAC/PHY parameters
parameter logic COMBINED_MAC_PCS = 1'b1,
parameter DATA_W = 64,
parameter logic PADDING_EN = 1'b1,
parameter logic DIC_EN = 1'b1,
parameter MIN_FRAME_LEN = 64,
@@ -368,6 +369,7 @@ for (genvar n = 0; n < CNT; n = n + 1) begin : ch
// MAC/PHY parameters
.COMBINED_MAC_PCS(COMBINED_MAC_PCS),
.DATA_W(DATA_W),
.PADDING_EN(PADDING_EN),
.DIC_EN(DIC_EN),
.MIN_FRAME_LEN(MIN_FRAME_LEN),

View File

@@ -52,6 +52,7 @@ module taxi_eth_mac_25g_us_ch #
// MAC/PHY parameters
parameter logic COMBINED_MAC_PCS = 1'b1,
parameter DATA_W = 64,
parameter logic PADDING_EN = 1'b1,
parameter logic DIC_EN = 1'b1,
parameter MIN_FRAME_LEN = 64,
@@ -279,7 +280,6 @@ module taxi_eth_mac_25g_us_ch #
input wire logic cfg_rx_pfc_en = 1'b0
);
localparam DATA_W = 64;
localparam HDR_W = 2;
wire rx_reset_req;

View File

@@ -126,6 +126,13 @@ module taxi_eth_phy_25g_us_gt #
localparam GT_USP = FAMILY == "kintexuplus" || FAMILY == "virtexuplus" || FAMILY == "virtexuplusHBM"
|| FAMILY == "virtexuplus58G" || FAMILY == "zynquplus" || FAMILY == "zynquplusRFSOC";
// check configuration
if (DATA_W != 64)
$fatal(0, "Error: Interface width must be 64");
if (HDR_W != 2)
$fatal(0, "Error: HDR_W must be 2");
wire xcvr_ctrl_rst_sync;
taxi_sync_reset #(

View File

@@ -126,6 +126,13 @@ module taxi_eth_phy_25g_us_gt_ll #
localparam GT_USP = FAMILY == "kintexuplus" || FAMILY == "virtexuplus" || FAMILY == "virtexuplusHBM"
|| FAMILY == "virtexuplus58G" || FAMILY == "zynquplus" || FAMILY == "zynquplusRFSOC";
// check configuration
if (DATA_W != 64)
$fatal(0, "Error: Interface width must be 64");
if (HDR_W != 2)
$fatal(0, "Error: HDR_W must be 2");
wire xcvr_ctrl_rst_sync;
taxi_sync_reset #(