From 5e338581510fffc3d3fe34d9059e2eb96e3c280e Mon Sep 17 00:00:00 2001 From: gatecat Date: Sat, 28 Mar 2026 09:38:48 +0100 Subject: [PATCH] heap: Fix typo and regression Signed-off-by: gatecat --- common/place/placer_heap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/place/placer_heap.cc b/common/place/placer_heap.cc index 2eefb950..e15fdc2d 100644 --- a/common/place/placer_heap.cc +++ b/common/place/placer_heap.cc @@ -1319,7 +1319,7 @@ class HeAPPlacer continue; // Prefer available bels; unless we are dealing with a wide radius (e.g. difficult control sets) // or occasionally trigger a tiebreaker - if (ctx->checkBelAvail(sz) || (ctrl_set_group != -1 && (radius > ripup_radius || ctx->rng(20000) < 10))) { + if (ctx->checkBelAvail(sz) || (ctrl_set_group == -1 && (radius > ripup_radius || ctx->rng(20000) < 10))) { CellInfo *bound = ctx->getBoundBelCell(sz); if (bound != nullptr) { // Only rip up cells without constraints