mirror of https://github.com/YosysHQ/yosys.git
Account for pre-existing `keep_hierarchy` in cost sum
This commit is contained in:
parent
c33f7b92f7
commit
6ad4918121
|
@ -37,6 +37,9 @@ struct ThresholdHierarchyKeeping {
|
||||||
if (module->has_attribute(ID(gate_cost_equivalent)))
|
if (module->has_attribute(ID(gate_cost_equivalent)))
|
||||||
return module->attributes[ID(gate_cost_equivalent)].as_int();
|
return module->attributes[ID(gate_cost_equivalent)].as_int();
|
||||||
|
|
||||||
|
if (module->has_attribute(ID(keep_hierarchy)))
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (module->get_blackbox_attribute())
|
if (module->get_blackbox_attribute())
|
||||||
log_error("Missing cost information on instanced blackbox %s\n", log_id(module));
|
log_error("Missing cost information on instanced blackbox %s\n", log_id(module));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue