3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

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

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);