mirror of https://github.com/YosysHQ/nextpnr.git
heap: fail faster on control set mismatch
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
e0e623d1d1
commit
888ebd2dc7
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue