eth: Add statistics strings to Ethernet MACs

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-04-16 21:35:50 -07:00
parent 031d092513
commit e6cf1f5850
51 changed files with 258 additions and 96 deletions

View File

@@ -38,6 +38,8 @@ module taxi_eth_mac_phy_10g #
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
)
@@ -351,6 +353,8 @@ if (STAT_EN) begin : stats
.STAT_RX_LEVEL(STAT_RX_LEVEL),
.STAT_ID_BASE(STAT_ID_BASE),
.STAT_UPDATE_PERIOD(STAT_UPDATE_PERIOD),
.STAT_STR_EN(STAT_STR_EN),
.STAT_PREFIX_STR(STAT_PREFIX_STR),
.INC_W(4)
)
mac_stats_inst (