diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-11-02 20:09:57 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-11-02 20:09:57 +0100 |
commit | 308a4b4a1bf39576fa87ddd8b534bf24769bb7b8 (patch) | |
tree | aa291cfb8f9f0242efc5ecb5449ff153f11821ef /passes/hierarchy | |
parent | 4832faf5e9c1b94a76dcb551eb2832774b8787cb (diff) | |
download | yosys-308a4b4a1bf39576fa87ddd8b534bf24769bb7b8.tar.gz yosys-308a4b4a1bf39576fa87ddd8b534bf24769bb7b8.tar.bz2 yosys-308a4b4a1bf39576fa87ddd8b534bf24769bb7b8.zip |
Bugfix in "hierarchy -check"
Diffstat (limited to 'passes/hierarchy')
-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 9db407c7a..e21a7a4e3 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -213,7 +213,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check log_error("Module `%s' referenced in module `%s' in cell `%s' does not have a port named '%s'.\n", log_id(cell->type), log_id(module), log_id(cell), log_id(conn.first)); for (auto ¶m : cell->parameters) - if (mod->avail_parameters.count(param.first) == 0) + if (mod->avail_parameters.count(param.first) == 0 && param.first[0] != '$') log_error("Module `%s' referenced in module `%s' in cell `%s' does not have a parameter named '%s'.\n", log_id(cell->type), log_id(module), log_id(cell), log_id(param.first)); } |