diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-20 17:29:45 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-20 17:29:45 -0700 |
commit | 7dca8def52fdd3a0e450d3f554c328904636798d (patch) | |
tree | c4ea7016f52694a5432a9180c0ed39a46c91ccce /frontends | |
parent | d1dadfcec8e5fffb1d27f067a86a606591b9c686 (diff) | |
download | yosys-7dca8def52fdd3a0e450d3f554c328904636798d.tar.gz yosys-7dca8def52fdd3a0e450d3f554c328904636798d.tar.bz2 yosys-7dca8def52fdd3a0e450d3f554c328904636798d.zip |
Fix issue with part of PI being 1'bx
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/aiger/aigerparse.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index b98b36319..1235af142 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -944,11 +944,13 @@ void AigerReader::post_process() if (other_wire) { other_wire->port_input = false; other_wire->port_output = false; - if (wire->port_input) - module->connect(other_wire, SigSpec(wire, i)); - else - module->connect(SigSpec(wire, i), other_wire); } + if (wire->port_input && 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)); } } |