aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/aiger
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-09-29 19:39:12 -0700
committerEddie Hung <eddie@fpgeh.com>2019-09-29 19:39:12 -0700
commit1123c09588a6dd3964605de229c6bc4ac158b50e (patch)
tree6f6b950cfc30c4db0963a90fe065964489fa292b /frontends/aiger
parent18ebb86edbade4a94833dead59d69fddd980f5bd (diff)
parentd5f0794a531b36976d2c4d181b1c3921b801bbfa (diff)
downloadyosys-1123c09588a6dd3964605de229c6bc4ac158b50e.tar.gz
yosys-1123c09588a6dd3964605de229c6bc4ac158b50e.tar.bz2
yosys-1123c09588a6dd3964605de229c6bc4ac158b50e.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'frontends/aiger')
-rw-r--r--frontends/aiger/aigerparse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc
index 439311230..99029fb44 100644
--- a/frontends/aiger/aigerparse.cc
+++ b/frontends/aiger/aigerparse.cc
@@ -902,7 +902,7 @@ void AigerReader::post_process()
if (!existing) {
if (escaped_s.ends_with("$inout.out")) {
wire->port_output = false;
- RTLIL::Wire *in_wire = module->wire(escaped_s.substr(0, escaped_s.size()-10));
+ 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;
@@ -923,7 +923,7 @@ void AigerReader::post_process()
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(0, escaped_s.size()-10).c_str(), index));
+ 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;