diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-12-17 15:44:35 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-12-17 15:45:26 -0800 |
commit | 5f50e4f1121d139c3c9b842514c86cfc7712b32e (patch) | |
tree | d1fd9a81beae9316f9b3944e3dbffd20420ade78 /frontends | |
parent | 0875a078710a2d60ec3c55e9b5a87d97fd643f3b (diff) | |
download | yosys-5f50e4f1121d139c3c9b842514c86cfc7712b32e.tar.gz yosys-5f50e4f1121d139c3c9b842514c86cfc7712b32e.tar.bz2 yosys-5f50e4f1121d139c3c9b842514c86cfc7712b32e.zip |
Cleanup xaiger, remove unnecessary complexity with inout
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/aiger/aigerparse.cc | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index abc2f4144..613723966 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -887,16 +887,7 @@ void AigerReader::post_process() // simply connect the latter to the former RTLIL::Wire* existing = module->wire(escaped_s); if (!existing) { - if (escaped_s.ends_with("$inout.out")) { - wire->port_output = false; - RTLIL::Wire *in_wire = module->wire(escaped_s.substr(1, escaped_s.size()-11)); - log_assert(in_wire); - log_assert(in_wire->port_input && !in_wire->port_output); - in_wire->port_output = true; - module->connect(in_wire, wire); - } - else - module->rename(wire, escaped_s); + module->rename(wire, escaped_s); } else { wire->port_output = false; @@ -908,19 +899,9 @@ void AigerReader::post_process() std::string indexed_name = stringf("%s[%d]", escaped_s.c_str(), index); RTLIL::Wire* existing = module->wire(indexed_name); if (!existing) { - if (escaped_s.ends_with("$inout.out")) { - wire->port_output = false; - RTLIL::Wire *in_wire = module->wire(stringf("%s[%d]", escaped_s.substr(1, escaped_s.size()-11).c_str(), index)); - log_assert(in_wire); - log_assert(in_wire->port_input && !in_wire->port_output); - in_wire->port_output = true; - module->connect(in_wire, wire); - } - else { - module->rename(wire, indexed_name); - if (wideports) - wideports_cache[escaped_s] = std::max(wideports_cache[escaped_s], index); - } + module->rename(wire, indexed_name); + if (wideports) + wideports_cache[escaped_s] = std::max(wideports_cache[escaped_s], index); } else { module->connect(wire, existing); |