diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-02-24 20:41:36 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-02-24 20:41:36 +0100 |
commit | c258b99040c8414952a3aceae874dc47563540dc (patch) | |
tree | c64df65f19414b166128231218f0f595d93fa58a /passes | |
parent | c118f9a37751553d4c448bd8b3165d00e9c80c8a (diff) | |
download | yosys-c258b99040c8414952a3aceae874dc47563540dc.tar.gz yosys-c258b99040c8414952a3aceae874dc47563540dc.tar.bz2 yosys-c258b99040c8414952a3aceae874dc47563540dc.zip |
Minor changes ontop of 71bcc4c: Remove hierarchy warning that is redundant to -check
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes')
-rw-r--r-- | passes/hierarchy/hierarchy.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index cb54ffa58..2d8edebb5 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -527,11 +527,7 @@ int find_top_mod_score(Design *design, Module *module, dict<Module*, int> &db) // Is this cell a module instance? auto instModule = design->module(celltype); // If there is no instance for this, issue a warning. - if (instModule == NULL) { - // but only if we're sure it is a reference to a module. - if (celltype[0] != '$') - log_warning("find_top_mod_score: no instance for %s.%s\n", celltype.c_str(), cell->name.c_str()); - } else { + if (instModule != nullptr) { score = max(score, find_top_mod_score(design, instModule, db) + 1); } } |