mirror of https://github.com/YosysHQ/yosys.git
keep_hierarchy: Require size information on blackboxes
This commit is contained in:
parent
2425352551
commit
cf79630be0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue