From a1abc97e2a1f22da6597418141b89a660030e631 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Tue, 27 Dec 2022 18:26:47 -0800 Subject: [PATCH] ISE does not support clog2 in localparam Signed-off-by: Alex Forencich --- rtl/axis_baser_tx_64.v | 4 ++-- rtl/axis_gmii_tx.v | 2 +- rtl/axis_xgmii_tx_32.v | 4 ++-- rtl/axis_xgmii_tx_64.v | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rtl/axis_baser_tx_64.v b/rtl/axis_baser_tx_64.v index e0283a3d..d79bfe8f 100644 --- a/rtl/axis_baser_tx_64.v +++ b/rtl/axis_baser_tx_64.v @@ -87,8 +87,8 @@ module axis_baser_tx_64 # output wire error_underflow ); -localparam EMPTY_WIDTH = $clog2(KEEP_WIDTH); -localparam MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-KEEP_WIDTH+1); +parameter EMPTY_WIDTH = $clog2(KEEP_WIDTH); +parameter MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-KEEP_WIDTH+1); // bus width assertions initial begin diff --git a/rtl/axis_gmii_tx.v b/rtl/axis_gmii_tx.v index de86e8e9..b731ebd9 100644 --- a/rtl/axis_gmii_tx.v +++ b/rtl/axis_gmii_tx.v @@ -88,7 +88,7 @@ module axis_gmii_tx # output wire error_underflow ); -localparam MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-1+1); +parameter MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-1+1); // bus width assertions initial begin diff --git a/rtl/axis_xgmii_tx_32.v b/rtl/axis_xgmii_tx_32.v index 00088504..1f87cef2 100644 --- a/rtl/axis_xgmii_tx_32.v +++ b/rtl/axis_xgmii_tx_32.v @@ -85,8 +85,8 @@ module axis_xgmii_tx_32 # output wire error_underflow ); -localparam EMPTY_WIDTH = $clog2(KEEP_WIDTH); -localparam MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-CTRL_WIDTH+1); +parameter EMPTY_WIDTH = $clog2(KEEP_WIDTH); +parameter MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-CTRL_WIDTH+1); // bus width assertions initial begin diff --git a/rtl/axis_xgmii_tx_64.v b/rtl/axis_xgmii_tx_64.v index 5e257e01..4372c75c 100644 --- a/rtl/axis_xgmii_tx_64.v +++ b/rtl/axis_xgmii_tx_64.v @@ -87,8 +87,8 @@ module axis_xgmii_tx_64 # output wire error_underflow ); -localparam EMPTY_WIDTH = $clog2(KEEP_WIDTH); -localparam MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-CTRL_WIDTH+1); +parameter EMPTY_WIDTH = $clog2(KEEP_WIDTH); +parameter MIN_LEN_WIDTH = $clog2(MIN_FRAME_LENGTH-4-CTRL_WIDTH+1); // bus width assertions initial begin