diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-03-23 08:56:08 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-03-23 08:56:08 +0100 |
commit | 9717495401e58a3d0a41113b541442227daa7cc3 (patch) | |
tree | 2d11121391c2c3098ee9a14b0d330b1d2e78bcf2 /passes | |
parent | b4bf787f1091c79d6fed6ac1ec91ebadbceb8023 (diff) | |
download | yosys-9717495401e58a3d0a41113b541442227daa7cc3.tar.gz yosys-9717495401e58a3d0a41113b541442227daa7cc3.tar.bz2 yosys-9717495401e58a3d0a41113b541442227daa7cc3.zip |
Fixed handling of inverters (aka 1-input luts) in nlutmap
Diffstat (limited to 'passes')
-rw-r--r-- | passes/techmap/nlutmap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/nlutmap.cc b/passes/techmap/nlutmap.cc index 7ece40059..f5e77722e 100644 --- a/passes/techmap/nlutmap.cc +++ b/passes/techmap/nlutmap.cc @@ -64,7 +64,7 @@ struct NlutmapWorker { vector<int> available_luts = config.luts; - while (!available_luts.empty()) + while (GetSize(available_luts) > 1) { int n_luts = available_luts.back(); int lut_size = GetSize(available_luts); @@ -84,7 +84,7 @@ struct NlutmapWorker if (cell->type != "$lut" || mapped_cells.count(cell)) continue; - if (GetSize(cell->getPort("\\A")) == lut_size) + if (GetSize(cell->getPort("\\A")) == lut_size || lut_size == 2) candidate_ratings[cell] = 0; for (auto &conn : cell->connections()) |