Fixed another bug in write_blif handling of $lut cells

This commit is contained in:
Clifford Wolf 2014-12-19 17:54:44 +01:00
parent 36f0451ab4
commit 30de490d86
1 changed files with 1 additions and 1 deletions

View File

@ -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");