mirror of https://github.com/YosysHQ/nextpnr.git
heap: Fix typo and regression
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
8480e941a5
commit
5e33858151
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue