mirror of https://github.com/YosysHQ/yosys.git
Added support for "keep" attribute to abc pass
This commit is contained in:
parent
82c98bbbe6
commit
03ee63ff80
|
@ -447,7 +447,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
|
|||
extract_cell(c);
|
||||
|
||||
for (auto &wire_it : module->wires) {
|
||||
if (wire_it.second->port_id > 0)
|
||||
if (wire_it.second->port_id > 0 || wire_it.second->get_bool_attribute("\\keep"))
|
||||
mark_port(RTLIL::SigSpec(wire_it.second));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue