diff options
author | Lofty <dan.ravensloft@gmail.com> | 2022-06-06 15:29:52 +0100 |
---|---|---|
committer | Lofty <dan.ravensloft@gmail.com> | 2022-06-08 09:31:49 +0100 |
commit | aae2c01326a1079be442c10a2424add5b1689485 (patch) | |
tree | 8af9f30e9fc0e62f5314019d3cd5d9bc1dc63881 /passes/cmds | |
parent | 4afb95128354f40caa201861a9e0bb8413908ae7 (diff) | |
download | yosys-aae2c01326a1079be442c10a2424add5b1689485.tar.gz yosys-aae2c01326a1079be442c10a2424add5b1689485.tar.bz2 yosys-aae2c01326a1079be442c10a2424add5b1689485.zip |
sta: warn on unrecognised cells only once
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/sta.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/cmds/sta.cc b/passes/cmds/sta.cc index 13e1ee13c..4ad0e96be 100644 --- a/passes/cmds/sta.cc +++ b/passes/cmds/sta.cc @@ -58,11 +58,14 @@ struct StaWorker { TimingInfo timing; + pool<IdString> unrecognised_cells; + for (auto cell : module->cells()) { Module *inst_module = design->module(cell->type); if (!inst_module) { - log_warning("Cell type '%s' not recognised! Ignoring.\n", log_id(cell->type)); + if (unrecognised_cells.insert(cell->type).second) + log_warning("Cell type '%s' not recognised! Ignoring.\n", log_id(cell->type)); continue; } |