mirror of https://github.com/YosysHQ/yosys.git
sta: warn on unrecognised cells only once
This commit is contained in:
parent
4afb951283
commit
aae2c01326
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue