diff options
author | David Shah <davey1576@gmail.com> | 2018-08-03 15:02:42 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-08-03 15:02:42 +0200 |
commit | 48e06896a2f86af3ccf7a8b01bf23ac5a522ad8d (patch) | |
tree | 7b37db0a9506b3dcc345226dbf855f07f6c4be27 /common | |
parent | 7e9209878c81730e6374ff555ea2c52f8d20a0ee (diff) | |
download | nextpnr-48e06896a2f86af3ccf7a8b01bf23ac5a522ad8d.tar.gz nextpnr-48e06896a2f86af3ccf7a8b01bf23ac5a522ad8d.tar.bz2 nextpnr-48e06896a2f86af3ccf7a8b01bf23ac5a522ad8d.zip |
place_common: Fixing rel legaliser search bugs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/place_common.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/place_common.cc b/common/place_common.cc index 0b7a0352..d26a377e 100644 --- a/common/place_common.cc +++ b/common/place_common.cc @@ -251,7 +251,7 @@ class ConstraintLegaliseWorker zSearch = IncreasingDiameterSearch(loc.z + child->constr_z); } } - while (!(xSearch.done() && ySearch.done() && zSearch.done())) { + while (!xSearch.done()) { Loc cloc; cloc.x = xSearch.get(); cloc.y = ySearch.get(); @@ -267,7 +267,7 @@ class ConstraintLegaliseWorker } } - if (usedLocations.count(loc)) + if (usedLocations.count(cloc)) continue; if (valid_loc_for(child, cloc, solution, usedLocations)) return true; @@ -306,7 +306,7 @@ class ConstraintLegaliseWorker yRootSearch = IncreasingDiameterSearch(currentLoc.y, 0, ctx->getGridDimY() - 1); if (cell->constr_z == cell->UNCONSTR) zRootSearch = IncreasingDiameterSearch(currentLoc.z, 0, ctx->getTileDimZ(currentLoc.x, currentLoc.y)); - while (!(xRootSearch.done() && yRootSearch.done() && zRootSearch.done())) { + while (!xRootSearch.done()) { Loc rootLoc; rootLoc.x = xRootSearch.get(); rootLoc.y = yRootSearch.get(); |