aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorLofty <dan.ravensloft@gmail.com>2022-06-06 15:29:52 +0100
committerLofty <dan.ravensloft@gmail.com>2022-06-08 09:31:49 +0100
commitaae2c01326a1079be442c10a2424add5b1689485 (patch)
tree8af9f30e9fc0e62f5314019d3cd5d9bc1dc63881 /passes
parent4afb95128354f40caa201861a9e0bb8413908ae7 (diff)
downloadyosys-aae2c01326a1079be442c10a2424add5b1689485.tar.gz
yosys-aae2c01326a1079be442c10a2424add5b1689485.tar.bz2
yosys-aae2c01326a1079be442c10a2424add5b1689485.zip
sta: warn on unrecognised cells only once
Diffstat (limited to 'passes')
-rw-r--r--passes/cmds/sta.cc5
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;
}