From 888ebd2dc7d41d8637319a2a850bfe9090a26729 Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 27 Mar 2026 10:28:38 +0100 Subject: [PATCH] heap: fail faster on control set mismatch Signed-off-by: gatecat --- common/place/placer_heap.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/place/placer_heap.cc b/common/place/placer_heap.cc index 6207bb92..7c1cf02e 100644 --- a/common/place/placer_heap.cc +++ b/common/place/placer_heap.cc @@ -1315,6 +1315,8 @@ class HeAPPlacer continue; if (ctrl_set_group != -1 && p->z_to_ctrl_set.at(ctx->getBelLocation(sz).z) != ctrl_set_group) continue; + if (ctrl_set_group == -1 && !p->test_ctrl_set(sz, ci->name)) + 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))) {