aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/aiger
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-14 09:01:53 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-14 09:01:53 -0800
commitf63f76c372e8003f60565ee109d38ae1797d7e89 (patch)
tree02949f4f8f2f3901e5df2e427c46760664027478 /frontends/aiger
parentee95fa959acc3a796836c9df970d6739d6cf0ade (diff)
downloadyosys-f63f76c372e8003f60565ee109d38ae1797d7e89.tar.gz
yosys-f63f76c372e8003f60565ee109d38ae1797d7e89.tar.bz2
yosys-f63f76c372e8003f60565ee109d38ae1797d7e89.zip
read_aiger: also rename "$0"
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 859dd5314..f6b2a639d 100644
--- a/frontends/aiger/aigerparse.cc
+++ b/frontends/aiger/aigerparse.cc
@@ -255,7 +255,7 @@ end_of_header:
else
log_abort();
- RTLIL::Wire* n0 = module->wire("$0");
+ RTLIL::Wire* n0 = module->wire(stringf("$aiger%d$0", aiger_autoidx));
if (n0)
module->connect(n0, State::S0);
@@ -383,7 +383,7 @@ void AigerReader::parse_xaiger()
else
log_abort();
- RTLIL::Wire* n0 = module->wire("$0");
+ RTLIL::Wire* n0 = module->wire(stringf("$aiger%d$0", aiger_autoidx));
if (n0)
module->connect(n0, State::S0);