Can someone please help me understand what is the error here and is there any workaround for this?
localparam A_LOCAL = 4;
localparam B_LOCAL = clogb2(A_LOCAL); // Error seen for this line. clogb2 is a automatic function with 32 bit input and integer type return value