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,