keep_hierarchy: Require size information on blackboxes

This commit is contained in:
Martin Povišer 2024-10-19 01:18:30 +02:00
parent 2425352551
commit cf79630be0
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ struct ThresholdHiearchyKeeping {
if (module->has_attribute(ID(gate_cost_equivalent)))
return module->attributes[ID(gate_cost_equivalent)].as_int();
if (module->get_blackbox_attribute())
log_error("Missing cost information on instanced blackbox %s\n", log_id(module));
if (done.count(module))
return done.at(module);