diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-03-02 12:36:46 -0800 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-03-02 12:36:46 -0800 |
commit | ae9286386de117991f887f919f5af3fac40173cc (patch) | |
tree | 5497828d0a1e4fa70feaceec76bf15a7ab8fe38e /passes | |
parent | ce6695e22c7d2b8856ec5bb93a94264555aa55b5 (diff) | |
download | yosys-ae9286386de117991f887f919f5af3fac40173cc.tar.gz yosys-ae9286386de117991f887f919f5af3fac40173cc.tar.bz2 yosys-ae9286386de117991f887f919f5af3fac40173cc.zip |
Only run derive on blackbox modules when ports have dynamic size
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes')
-rw-r--r-- | passes/hierarchy/hierarchy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index 2d8edebb5..88c339e8c 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -910,7 +910,7 @@ struct HierarchyPass : public Pass { if (m == nullptr) continue; - if (m->get_bool_attribute("\\blackbox") && !cell->parameters.empty()) { + if (m->get_bool_attribute("\\blackbox") && !cell->parameters.empty() && m->get_bool_attribute("\\dynports")) { IdString new_m_name = m->derive(design, cell->parameters, true); if (new_m_name.empty()) continue; |