You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> iverilog -g2012 Asdf.sv
Asdf.sv:3: error: localparam must have a value.
Asdf.sv:3: syntax error
Asdf.sv:3: error: Invalid module item.
Related issues and work
There is an issue #562 about array assignment in general, which was partially addressed by #953. That seems to have solved assignment to variables, but it doesn't work for localparams.
Unpacked and multidimensional localparam support was also mentioned in discussion in #570, but since that issue was focused on function-based assignment, I have opened this one as a separate issue.
The text was updated successfully, but these errors were encountered:
As far as I can tell, IEEE 1800-2012 supports unpacked arrays as localparams, and the syntax used in the following example.
However, the following fails to compile:
Related issues and work
There is an issue #562 about array assignment in general, which was partially addressed by #953. That seems to have solved assignment to variables, but it doesn't work for localparams.
Unpacked and multidimensional localparam support was also mentioned in discussion in #570, but since that issue was focused on function-based assignment, I have opened this one as a separate issue.
The text was updated successfully, but these errors were encountered: