aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/aiger/aigerparse.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-15 16:22:49 -0800
committerGitHub <noreply@github.com>2020-01-15 16:22:49 -0800
commit2bda51ac34d6f542d1d6477eecede1d6527c10b3 (patch)
treeea8649ffc286b3e81f6d255f619996271c258f64 /frontends/aiger/aigerparse.cc
parentabba1541bc18b031625708a966c830b5c1f81283 (diff)
parent5918ede9bd7568d5a5156f20fdc4ce215d4968f8 (diff)
downloadyosys-2bda51ac34d6f542d1d6477eecede1d6527c10b3.tar.gz
yosys-2bda51ac34d6f542d1d6477eecede1d6527c10b3.tar.bz2
yosys-2bda51ac34d6f542d1d6477eecede1d6527c10b3.zip
Merge pull request #1639 from YosysHQ/eddie/fix_read_xaiger
read_aiger: $lut prefix in front
Diffstat (limited to 'frontends/aiger/aigerparse.cc')
-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 f6b2a639d..a4b1e6fec 100644
--- a/frontends/aiger/aigerparse.cc
+++ b/frontends/aiger/aigerparse.cc
@@ -1001,9 +1001,9 @@ void AigerReader::post_process()
if (cell->type != "$lut") continue;
auto y_port = cell->getPort("\\Y").as_bit();
if (y_port.wire->width == 1)
- module->rename(cell, stringf("%s$lut", y_port.wire->name.c_str()));
+ module->rename(cell, stringf("$lut%s", y_port.wire->name.c_str()));
else
- module->rename(cell, stringf("%s[%d]$lut", y_port.wire->name.c_str(), y_port.offset));
+ module->rename(cell, stringf("$lut%s[%d]", y_port.wire->name.c_str(), y_port.offset));
}
}