Closed Lockedloop closed 5 months ago
I don't have the LRM on hand right now, but I think that is invalid syntax. Localparams must be assigned with a constant expression (fixed at elaboration), but substr
is only evaluated at simulation (I think).
To convert to valid syntax, you can just remove the localparam
keyword.
Hi, thank you for the prompt reply.
Simulation works fine, also verilator lint passes on this file.
I removed the localparam
, so I have int P1 = ...
and the lint passes indeed.
However then the sim gets broken, because P1
is no longer a constant expression.
@dalance I think this can be safely closed.
I am using the
substr
method to decode multiple parameter values from one string parameter. Svlint throws me a parse error: