Cleanup abstract modules at end of "hierarchy -top"
authorClifford Wolf <clifford@clifford.at>
Mon, 21 Mar 2016 15:33:34 +0000 (16:33 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 21 Mar 2016 15:37:35 +0000 (16:37 +0100)
passes/hierarchy/hierarchy.cc

index fcc30d1756ceaaaafb4d4790ed00bba45b86fbcc..129f483990c8c4061c74417fb93aa2a824704771 100644 (file)
@@ -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());