mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-11 09:44:44 +00:00
kernel: call hierarchy
for abstract modules automatically.
Whenever there are abstract modules in the netlist and the pass does not declare that it supports them, call `hierarchy -auto-top` or `hierarchy` (depending on whether there is a module marked `top`) to instantiate them first. This makes several CLI workflows much more usable, including one as basic as: $ yosys file.v -o file.il
This commit is contained in:
parent
1c8e58a736
commit
9cd4b4e72d
13 changed files with 40 additions and 18 deletions
|
@ -716,7 +716,7 @@ RTLIL::Wire *find_implicit_port_wire(Module *module, Cell *cell, const std::stri
|
|||
}
|
||||
|
||||
struct HierarchyPass : public Pass {
|
||||
HierarchyPass() : Pass("hierarchy", "check, expand and clean up design hierarchy") { }
|
||||
HierarchyPass() : Pass("hierarchy", "check, expand and clean up design hierarchy") { abstract_modules_ok = true; }
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue