mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-20 12:53:39 +00:00
abc_new: Support abc9_box
mode on ordinary design hierarchy
Previously the `abc9_box` mode was reserved to modules with the `blackbox` or `whitebox` attribute. Allow `abc9_box` on ordinary modules when doing hierarchical synthesis.
This commit is contained in:
parent
285f24d764
commit
2a3f60bc06
2 changed files with 39 additions and 2 deletions
|
@ -1078,7 +1078,8 @@ void prep_box(RTLIL::Design *design)
|
|||
}
|
||||
|
||||
ss << log_id(module) << " " << module->attributes.at(ID::abc9_box_id).as_int();
|
||||
ss << " " << (module->get_bool_attribute(ID::whitebox) ? "1" : "0");
|
||||
bool has_model = module->get_bool_attribute(ID::whitebox) || !module->get_bool_attribute(ID::blackbox);
|
||||
ss << " " << (has_model ? "1" : "0");
|
||||
ss << " " << GetSize(inputs) << " " << GetSize(outputs) << std::endl;
|
||||
|
||||
bool first = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue