sta: warn on unrecognised cells only once

This commit is contained in:
Lofty 2022-06-06 15:29:52 +01:00
parent 4afb951283
commit aae2c01326
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}