mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
parse_xaiger to not take box_lookup
This commit is contained in:
parent
e5ed8e8e21
commit
96db05aaef
4 changed files with 37 additions and 63 deletions
|
@ -414,14 +414,25 @@ struct XAigerWriter
|
|||
auto w = box_module->wire(port_name);
|
||||
log_assert(w);
|
||||
if (w->get_bool_attribute("\\abc9_carry")) {
|
||||
if (w->port_input)
|
||||
if (w->port_input) {
|
||||
if (carry_in != IdString())
|
||||
log_error("Module '%s' contains more than one 'abc9_carry' input port.\n", log_id(box_module));
|
||||
carry_in = port_name;
|
||||
if (w->port_output)
|
||||
}
|
||||
if (w->port_output) {
|
||||
if (carry_out != IdString())
|
||||
log_error("Module '%s' contains more than one 'abc9_carry' output port.\n", log_id(box_module));
|
||||
carry_out = port_name;
|
||||
}
|
||||
}
|
||||
else
|
||||
r.first->second.push_back(port_name);
|
||||
}
|
||||
|
||||
if (carry_in != IdString() && carry_out == IdString())
|
||||
log_error("Module '%s' contains an 'abc9_carry' input port but no output port.\n", log_id(box_module));
|
||||
if (carry_in == IdString() && carry_out != IdString())
|
||||
log_error("Module '%s' contains an 'abc9_carry' output port but no input port.\n", log_id(box_module));
|
||||
if (carry_in != IdString()) {
|
||||
log_assert(carry_out != IdString());
|
||||
r.first->second.push_back(carry_in);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue