heap: Fix typo and regression

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-03-28 09:38:48 +01:00
parent 8480e941a5
commit 5e33858151
1 changed files with 1 additions and 1 deletions

View File

@ -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