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
Run Yosys with: yosys -p "read_verilog testcase.v; hierarchy -check
The error message incorrectly suggests the parameter is missing, while the real issue is an illegal localparam override.
No indication of the actual violation type (localparam vs missing parameter)
Expected Behavior
A clear error message indicating an attempt to override a localparam: ERROR: Cannot override localparam 'B' in module 'child' via defparam at testcase.v:5
Actual Behavior
Misleading error message stating the parameter does not exist: ERROR: Module child' referenced in module parent' in cell invalid_inst' does not have a parameter named 'B'`
The text was updated successfully, but these errors were encountered:
Version
Yosys 0.50+7 (git sha1 38f8583, clang++ 14.0.0-1ubuntu1.1 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
Save the following minimal testcase as testcase.v:
Run Yosys with:
yosys -p "read_verilog testcase.v; hierarchy -check
The error message incorrectly suggests the parameter is missing, while the real issue is an illegal localparam override.
No indication of the actual violation type (localparam vs missing parameter)
Expected Behavior
A clear error message indicating an attempt to override a localparam:
ERROR: Cannot override localparam 'B' in module 'child' via defparam at testcase.v:5
Actual Behavior
Misleading error message stating the parameter does not exist:
ERROR: Module
child' referenced in moduleparent' in cell
invalid_inst' does not have a parameter named 'B'`The text was updated successfully, but these errors were encountered: