From ca3ee2d1970bf89b12803df5c5dcb560141888ff Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 12 Jun 2025 14:56:55 -0700 Subject: [PATCH] eth: Fix PFC/LFC parameters in 25G MAC modules Signed-off-by: Alex Forencich --- src/eth/rtl/taxi_eth_mac_phy_10g.sv | 6 +++--- src/eth/rtl/us/taxi_eth_mac_25g_us.sv | 4 ++++ src/eth/rtl/us/taxi_eth_mac_25g_us_ch.sv | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/eth/rtl/taxi_eth_mac_phy_10g.sv b/src/eth/rtl/taxi_eth_mac_phy_10g.sv index 90062d0..5875cc6 100644 --- a/src/eth/rtl/taxi_eth_mac_phy_10g.sv +++ b/src/eth/rtl/taxi_eth_mac_phy_10g.sv @@ -35,15 +35,15 @@ module taxi_eth_mac_phy_10g # parameter BITSLIP_HIGH_CYCLES = 0, parameter BITSLIP_LOW_CYCLES = 7, parameter COUNT_125US = 125000/6.4, + parameter logic PFC_EN = 1'b0, + parameter logic PAUSE_EN = PFC_EN, parameter logic STAT_EN = 1'b0, parameter STAT_TX_LEVEL = 1, parameter STAT_RX_LEVEL = 1, parameter STAT_ID_BASE = 0, parameter STAT_UPDATE_PERIOD = 1024, parameter logic STAT_STR_EN = 1'b0, - parameter logic [8*8-1:0] STAT_PREFIX_STR = "MAC", - parameter logic PFC_EN = 1'b0, - parameter logic PAUSE_EN = PFC_EN + parameter logic [8*8-1:0] STAT_PREFIX_STR = "MAC" ) ( input wire logic rx_clk, diff --git a/src/eth/rtl/us/taxi_eth_mac_25g_us.sv b/src/eth/rtl/us/taxi_eth_mac_25g_us.sv index 2ed277b..9ec20c1 100644 --- a/src/eth/rtl/us/taxi_eth_mac_25g_us.sv +++ b/src/eth/rtl/us/taxi_eth_mac_25g_us.sv @@ -63,6 +63,8 @@ module taxi_eth_mac_25g_us # parameter BITSLIP_HIGH_CYCLES = 0, parameter BITSLIP_LOW_CYCLES = 7, parameter COUNT_125US = 125000/6.4, + parameter logic PFC_EN = 1'b0, + parameter logic PAUSE_EN = PFC_EN, parameter logic STAT_EN = 1'b0, parameter STAT_TX_LEVEL = 1, parameter STAT_RX_LEVEL = 1, @@ -376,6 +378,8 @@ for (genvar n = 0; n < CNT; n = n + 1) begin : ch .BITSLIP_HIGH_CYCLES(BITSLIP_HIGH_CYCLES), .BITSLIP_LOW_CYCLES(BITSLIP_LOW_CYCLES), .COUNT_125US(COUNT_125US), + .PFC_EN(PFC_EN), + .PAUSE_EN(PAUSE_EN), .STAT_EN(STAT_EN), .STAT_TX_LEVEL(STAT_TX_LEVEL), .STAT_RX_LEVEL(STAT_RX_LEVEL), diff --git a/src/eth/rtl/us/taxi_eth_mac_25g_us_ch.sv b/src/eth/rtl/us/taxi_eth_mac_25g_us_ch.sv index b514b07..8c2a6fb 100644 --- a/src/eth/rtl/us/taxi_eth_mac_25g_us_ch.sv +++ b/src/eth/rtl/us/taxi_eth_mac_25g_us_ch.sv @@ -63,6 +63,8 @@ module taxi_eth_mac_25g_us_ch # parameter BITSLIP_HIGH_CYCLES = 0, parameter BITSLIP_LOW_CYCLES = 7, parameter COUNT_125US = 125000/6.4, + parameter logic PFC_EN = 1'b0, + parameter logic PAUSE_EN = PFC_EN, parameter logic STAT_EN = 1'b0, parameter STAT_TX_LEVEL = 1, parameter STAT_RX_LEVEL = 1, @@ -533,6 +535,8 @@ taxi_eth_mac_phy_10g #( .BITSLIP_HIGH_CYCLES(BITSLIP_HIGH_CYCLES), .BITSLIP_LOW_CYCLES(BITSLIP_LOW_CYCLES), .COUNT_125US(COUNT_125US), + .PFC_EN(PFC_EN), + .PAUSE_EN(PAUSE_EN), .STAT_EN(STAT_EN), .STAT_TX_LEVEL(STAT_TX_LEVEL), .STAT_RX_LEVEL(STAT_RX_LEVEL),