diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-12-19 17:54:44 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-12-19 17:54:44 +0100 |
commit | 30de490d867e4eaf9a7eb59ca85b976179b346ba (patch) | |
tree | 4cc5f00c0fcc12d990878c030d49967591fab0b8 /backends/blif | |
parent | 36f0451ab405d1f7809e593926952ac2cf4a6510 (diff) | |
download | yosys-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.cc | 2 |
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"); |