diff options
author | David Shah <dave@ds0.me> | 2019-11-22 15:07:55 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-02-02 16:12:33 +0000 |
commit | 4bfd2ef4f328b4a95918ed3e0d7a7e38406c4ae8 (patch) | |
tree | 9c5e0ed53f701187915b10a4b9256fadfc88537e /passes/hierarchy | |
parent | ebe1d7d5ab798b945bf2aa0e818ffe7152995071 (diff) | |
download | yosys-4bfd2ef4f328b4a95918ed3e0d7a7e38406c4ae8.tar.gz yosys-4bfd2ef4f328b4a95918ed3e0d7a7e38406c4ae8.tar.bz2 yosys-4bfd2ef4f328b4a95918ed3e0d7a7e38406c4ae8.zip |
sv: Improve handling of wildcard port connections
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'passes/hierarchy')
-rw-r--r-- | passes/hierarchy/hierarchy.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index c298a6600..fa4a8ea29 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -992,7 +992,7 @@ struct HierarchyPass : public Pass { if (wire->port_input && wire->attributes.count("\\defaultvalue")) defaults_db[module->name][wire->name] = wire->attributes.at("\\defaultvalue"); } - // Process SV implicit port connections + // Process SV implicit wildcard port connections std::set<Module*> blackbox_derivatives; std::vector<Module*> design_modules = design->modules(); @@ -1000,7 +1000,7 @@ struct HierarchyPass : public Pass { { for (auto cell : module->cells()) { - if (!cell->get_bool_attribute(ID(implicit_port_conns))) + if (!cell->get_bool_attribute(ID(wildcard_port_conns))) continue; Module *m = design->module(cell->type); @@ -1042,7 +1042,7 @@ struct HierarchyPass : public Pass { RTLIL::id2cstr(wire->name), RTLIL::id2cstr(module->name), RTLIL::id2cstr(cell->name), RTLIL::id2cstr(cell->type)); cell->setPort(wire->name, parent_wire); } - cell->attributes.erase(ID(implicit_port_conns)); + cell->attributes.erase(ID(wildcard_port_conns)); } } |