Do not fix port widths on any blackbox instances
authorClifford Wolf <clifford@clifford.at>
Mon, 13 Feb 2017 16:07:38 +0000 (17:07 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 13 Feb 2017 16:07:38 +0000 (17:07 +0100)
passes/hierarchy/hierarchy.cc

index 037fdb3b2fd7dd530de47961566841c26780297d..3534cbcdb2e2ece0dd429701b4a98db818d3d240 100644 (file)
@@ -630,7 +630,7 @@ struct HierarchyPass : public Pass {
 
                                Module *m = design->module(cell->type);
 
-                               if (m == nullptr)
+                               if (m == nullptr || m->get_bool_attribute("\\blackbox"))
                                        continue;
 
                                for (auto &conn : cell->connections())