From 315a4715ffacbd98ede71277e896b2c71871692f Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 19 Mar 2025 16:32:17 -0700 Subject: [PATCH] xfcp: Fix localparam definition Signed-off-by: Alex Forencich --- rtl/xfcp/taxi_xfcp_switch.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/xfcp/taxi_xfcp_switch.sv b/rtl/xfcp/taxi_xfcp_switch.sv index ad9ebce..986b787 100644 --- a/rtl/xfcp/taxi_xfcp_switch.sv +++ b/rtl/xfcp/taxi_xfcp_switch.sv @@ -38,8 +38,8 @@ module taxi_xfcp_switch # taxi_axis_if.snk xfcp_dsp_us[PORTS] ); -parameter CL_PORTS = PORTS > 1 ? $clog2(PORTS) : 1; -parameter CL_PORTS_P1 = $clog2(PORTS+1); +localparam CL_PORTS = PORTS > 1 ? $clog2(PORTS) : 1; +localparam CL_PORTS_P1 = $clog2(PORTS+1); // check configuration if (PORTS < 1 || PORTS > 256)