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
I believe the program should not be accepted by yosys frontend, since in the declaration localparam id_1 = id_1 id_1 does not exist and is not within a module, causing a loop in the simplifier.
Actual Behavior
/----------------------------------------------------------------------------\
| yosys -- Yosys Open SYnthesis Suite || Copyright (C) 2012 - 2024 Claire Xenia Wolf <[email protected]>|| Distributed under an ISC-like license, type"license" to see terms |\----------------------------------------------------------------------------/
Yosys 0.45+106 (git sha1 982fade0d, clang++ 14.0.0-1ubuntu1.1 -fPIC -O3)
-- Running command`read -sv program.v; hierarchy -check' --1. Executing Verilog-2005 frontend: program.vParsing SystemVerilog input from `program.v' to AST representation.Storing AST representation for module `$abstract\module_0'.Successfully finished Verilog frontend.2. Executing HIERARCHY pass (managing design hierarchy).2.1. Executing AST frontend in derive mode using pre-parsed AST for module `\module_0'.
Generating RTLIL representation for module `\module_0'.Warning: Deep recursion in AST simplifier.Does this design contain overly long or deeply nested expressions, or excessive recursion?Segmentation fault
The text was updated successfully, but these errors were encountered:
Then, using that dump, valgrind ./yosys -p "read_rtlil 4598.il; hierarchy -check" doesn't crash and gives us ERROR: Module `$abstract\module_0' is used with parameters but is not parametric!
Whenever dump gives you $abstract anything, the dump is invalid and can't be used as a reproducer. As I've said many times before, either write_rtlil or read_rtlil should reject such cells.
Version
Yosys 0.45+106 (git sha1 982fade, clang++ 14.0.0-1ubuntu1.1 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
Program used:
Command:
yosys -p 'read -sv program.v; hierarchy -check'
Expected Behavior
I believe the program should not be accepted by yosys frontend, since in the declaration
localparam id_1 = id_1
id_1 does not exist and is not within a module, causing a loop in the simplifier.Actual Behavior
The text was updated successfully, but these errors were encountered: