diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-20 19:27:00 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-20 19:27:00 -0700 |
commit | c421d48d6d5519b24b4596d695c3cf7c43b468f4 (patch) | |
tree | 5c3f78ca06d32119e58c96a92fff2bc992b3b89a /frontends | |
parent | a0566b03ecfb13fba693d35e8af16913b45444c7 (diff) | |
download | yosys-c421d48d6d5519b24b4596d695c3cf7c43b468f4.tar.gz yosys-c421d48d6d5519b24b4596d695c3cf7c43b468f4.tar.bz2 yosys-c421d48d6d5519b24b4596d695c3cf7c43b468f4.zip |
Fix broken abc9.v test due to inout being 1'bx
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/aiger/aigerparse.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index 1235af142..d50a38b7a 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -836,6 +836,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 @@ -945,12 +949,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)); + } } } |