mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-27 12:42:25 +00:00
placer: Fix conflicts during constraint legalisation
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
@@ -237,6 +237,12 @@ class ConstraintLegaliseWorker
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Don't place at tiles where any strongly bound Bels exist, as we might need to rip them up later
|
||||
for (auto tilebel : ctx->getBelsByTile(loc.x, loc.y)) {
|
||||
CellInfo *tcell = ctx->getBoundBelCell(tilebel);
|
||||
if (tcell && tcell->belStrength >= STRENGTH_STRONG)
|
||||
return false;
|
||||
}
|
||||
usedLocations.insert(loc);
|
||||
for (auto child : cell->constr_children) {
|
||||
IncreasingDiameterSearch xSearch, ySearch, zSearch;
|
||||
|
||||
Reference in New Issue
Block a user