From 043fa0fad039287ee1b6a6fec3d925b9c7304af8 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 21 Mar 2016 16:33:34 +0100 Subject: [PATCH] Cleanup abstract modules at end of "hierarchy -top" --- passes/hierarchy/hierarchy.cc | 2 -- 1 file changed, 2 deletions(-) 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()); -- 2.30.2