mirror of https://github.com/YosysHQ/yosys.git
Cleanup abstract modules at end of "hierarchy -top"
This commit is contained in:
parent
2c7e107d7a
commit
043fa0fad0
|
@ -297,8 +297,6 @@ void hierarchy_clean(RTLIL::Design *design, RTLIL::Module *top, bool purge_lib)
|
||||||
|
|
||||||
int del_counter = 0;
|
int del_counter = 0;
|
||||||
for (auto mod : del_modules) {
|
for (auto mod : del_modules) {
|
||||||
if (mod->name.substr(0, 9) == "$abstract")
|
|
||||||
continue;
|
|
||||||
if (!purge_lib && mod->get_bool_attribute("\\blackbox"))
|
if (!purge_lib && mod->get_bool_attribute("\\blackbox"))
|
||||||
continue;
|
continue;
|
||||||
log("Removing unused module `%s'.\n", mod->name.c_str());
|
log("Removing unused module `%s'.\n", mod->name.c_str());
|
||||||
|
|
Loading…
Reference in New Issue