From 69468d5a16f87616af9c7f084f6ff247f3513050 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 13 Feb 2017 17:07:38 +0100 Subject: [PATCH] Do not fix port widths on any blackbox instances --- passes/hierarchy/hierarchy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index 037fdb3b2..3534cbcdb 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -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()) -- 2.30.2