mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 01:55:33 +00:00
Fix broken abc9.v test due to inout being 1'bx
This commit is contained in:
parent
eb09ea6d54
commit
9faeba7a66
2 changed files with 21 additions and 5 deletions
|
@ -839,6 +839,10 @@ void AigerReader::post_process()
|
|||
RTLIL::Wire* wire = outputs[variable + co_count];
|
||||
log_assert(wire);
|
||||
log_assert(wire->port_output);
|
||||
if (escaped_s == "$__dummy__") {
|
||||
wire->port_output = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (index == 0) {
|
||||
// Cope with the fact that a CO might be identical
|
||||
|
@ -948,12 +952,15 @@ void AigerReader::post_process()
|
|||
other_wire->port_input = false;
|
||||
other_wire->port_output = false;
|
||||
}
|
||||
if (wire->port_input && other_wire)
|
||||
module->connect(other_wire, SigSpec(wire, i));
|
||||
else
|
||||
if (wire->port_input) {
|
||||
if (other_wire)
|
||||
module->connect(other_wire, SigSpec(wire, i));
|
||||
}
|
||||
else {
|
||||
// Since we skip POs that are connected to Sx,
|
||||
// re-connect them here
|
||||
module->connect(SigSpec(wire, i), other_wire ? other_wire : SigSpec(RTLIL::Sx));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue