From: Lofty Date: Mon, 6 Jun 2022 14:29:52 +0000 (+0100) Subject: sta: warn on unrecognised cells only once X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aae2c01326a1079be442c10a2424add5b1689485;p=yosys.git sta: warn on unrecognised cells only once --- 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 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; }