From: Clifford Wolf Date: Mon, 21 Mar 2016 15:33:34 +0000 (+0100) Subject: Cleanup abstract modules at end of "hierarchy -top" X-Git-Tag: yosys-0.7~295 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=043fa0fad039287ee1b6a6fec3d925b9c7304af8;p=yosys.git Cleanup abstract modules at end of "hierarchy -top" --- diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index fcc30d175..129f48399 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -297,8 +297,6 @@ void hierarchy_clean(RTLIL::Design *design, RTLIL::Module *top, bool purge_lib) int del_counter = 0; for (auto mod : del_modules) { - if (mod->name.substr(0, 9) == "$abstract") - continue; if (!purge_lib && mod->get_bool_attribute("\\blackbox")) continue; log("Removing unused module `%s'.\n", mod->name.c_str());