From: Clifford Wolf Date: Mon, 13 Feb 2017 16:07:38 +0000 (+0100) Subject: Do not fix port widths on any blackbox instances X-Git-Tag: yosys-0.8~494 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69468d5a16f87616af9c7f084f6ff247f3513050;p=yosys.git Do not fix port widths on any blackbox instances --- 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())