From de868fef18bfcadaee2fa6c1ef889a4fa22ca021 Mon Sep 17 00:00:00 2001 From: David Sawatzke Date: Wed, 5 Oct 2022 11:50:58 +0200 Subject: [PATCH] Fix #124 by converting to integer --- rtl/eth_phy_10g_rx_ber_mon.v | 2 +- rtl/eth_phy_10g_rx_watchdog.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/eth_phy_10g_rx_ber_mon.v b/rtl/eth_phy_10g_rx_ber_mon.v index f2ba8d450..4850f8d37 100644 --- a/rtl/eth_phy_10g_rx_ber_mon.v +++ b/rtl/eth_phy_10g_rx_ber_mon.v @@ -59,7 +59,7 @@ initial begin end end -parameter COUNT_WIDTH = $clog2(COUNT_125US); +parameter COUNT_WIDTH = $clog2($rtoi(COUNT_125US)); localparam [1:0] SYNC_DATA = 2'b10, diff --git a/rtl/eth_phy_10g_rx_watchdog.v b/rtl/eth_phy_10g_rx_watchdog.v index c644de439..bbf1b6ad4 100644 --- a/rtl/eth_phy_10g_rx_watchdog.v +++ b/rtl/eth_phy_10g_rx_watchdog.v @@ -68,7 +68,7 @@ initial begin end end -parameter COUNT_WIDTH = $clog2(COUNT_125US); +parameter COUNT_WIDTH = $clog2($rtoi(COUNT_125US)); localparam [1:0] SYNC_DATA = 2'b10,