aboutsummaryrefslogtreecommitdiffstats
path: root/backends/blif
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-19 17:54:44 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-19 17:54:44 +0100
commit30de490d867e4eaf9a7eb59ca85b976179b346ba (patch)
tree4cc5f00c0fcc12d990878c030d49967591fab0b8 /backends/blif
parent36f0451ab405d1f7809e593926952ac2cf4a6510 (diff)
downloadyosys-30de490d867e4eaf9a7eb59ca85b976179b346ba.tar.gz
yosys-30de490d867e4eaf9a7eb59ca85b976179b346ba.tar.bz2
yosys-30de490d867e4eaf9a7eb59ca85b976179b346ba.zip
Fixed another bug in write_blif handling of $lut cells
Diffstat (limited to 'backends/blif')
-rw-r--r--backends/blif/blif.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/blif/blif.cc b/backends/blif/blif.cc
index 366ed0369..6422d9f01 100644
--- a/backends/blif/blif.cc
+++ b/backends/blif/blif.cc
@@ -220,7 +220,7 @@ struct BlifDumper
auto &inputs = cell->getPort("\\A");
auto width = cell->parameters.at("\\WIDTH").as_int();
log_assert(inputs.size() == width);
- for (int i = 0; i < inputs.size(); i++) {
+ for (int i = width-1; i >= 0; i--) {
f << stringf(" %s", cstr(inputs.extract(i, 1)));
}
auto &output = cell->getPort("\\Y");