xfcp: Fix localparam definition

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-03-19 16:32:17 -07:00
parent 2fd346269f
commit 315a4715ff

View File

@@ -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)