aboutsummaryrefslogtreecommitdiffstats
path: root/passes/hierarchy/hierarchy.cc
diff options
context:
space:
mode:
authorAndrew Zonenberg <azonenberg@drawersteak.com>2017-02-14 08:29:37 -0800
committerAndrew Zonenberg <azonenberg@drawersteak.com>2017-02-14 08:29:37 -0800
commit6fed2dc996a57b0f7c4205e1d76da865dd410982 (patch)
treeab980df43bc10a3aeefb2220b17885e210eeb0a7 /passes/hierarchy/hierarchy.cc
parent203b521a781ccc4c8dba05d2cc73e4625bcf2a8e (diff)
parent4fb800717101c65344fe78a365b8ae6ca0a90d9e (diff)
downloadyosys-6fed2dc996a57b0f7c4205e1d76da865dd410982.tar.gz
yosys-6fed2dc996a57b0f7c4205e1d76da865dd410982.tar.bz2
yosys-6fed2dc996a57b0f7c4205e1d76da865dd410982.zip
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'passes/hierarchy/hierarchy.cc')
-rw-r--r--passes/hierarchy/hierarchy.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc
index 4786aacaf..3534cbcdb 100644
--- a/passes/hierarchy/hierarchy.cc
+++ b/passes/hierarchy/hierarchy.cc
@@ -625,9 +625,12 @@ struct HierarchyPass : public Pass {
for (auto module : design->modules())
for (auto cell : module->cells())
{
+ if (GetSize(cell->parameters) != 0)
+ continue;
+
Module *m = design->module(cell->type);
- if (m == nullptr)
+ if (m == nullptr || m->get_bool_attribute("\\blackbox"))
continue;
for (auto &conn : cell->connections())