From 822b525035d7a088f68684d9cf1b6c6bb15006fe Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Mon, 26 Nov 2018 11:03:57 +0100 Subject: placer1: During initial placement, don't rip-up strongly binded cells Signed-off-by: Sylvain Munaut --- common/placer1.cc | 5 +++-- 1 file 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; } } -- cgit v1.2.3