diff options
Diffstat (limited to 'common/placer1.cc')
-rw-r--r-- | common/placer1.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/placer1.cc b/common/placer1.cc index 0db7ce00..b42ef2ff 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -337,9 +337,10 @@ class SAPlacer } } else { uint64_t score = ctx->rng64(); - if (score <= best_ripup_score) { + CellInfo *bound_cell = ctx->getBoundBelCell(bel); + if (score <= best_ripup_score && bound_cell->belStrength < STRENGTH_STRONG) { best_ripup_score = score; - ripup_target = ctx->getBoundBelCell(bel); + ripup_target = bound_cell; ripup_bel = bel; } } |