aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-11-13 16:21:22 -0800
committerEddie Hung <eddieh@ece.ubc.ca>2018-11-13 16:33:01 -0800
commitdf2622d30014d6c7fc0dfc3b440688ab22331ba2 (patch)
tree7b014d137f73fb51a15e0faba7e73f1426f4996c /common/placer1.cc
parent1b931078437370de28f5f0bee185e70b6bea8ed6 (diff)
downloadnextpnr-df2622d30014d6c7fc0dfc3b440688ab22331ba2.tar.gz
nextpnr-df2622d30014d6c7fc0dfc3b440688ab22331ba2.tar.bz2
nextpnr-df2622d30014d6c7fc0dfc3b440688ab22331ba2.zip
[placer1] Only perform slack redist if legalised
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index b22a66cb..0fd9a227 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -255,12 +255,12 @@ class SAPlacer
temp = post_legalise_temp;
diameter *= post_legalise_dia_scale;
ctx->shuffle(autoplaced);
+
+ // Legalisation is a big change so force a slack redistribution here
+ if (ctx->slack_redist_iter > 0)
+ assign_budget(ctx, true /* quiet */);
}
require_legal = false;
-
- // Legalisation is a big change so force a slack redistribution here
- if (ctx->slack_redist_iter > 0)
- assign_budget(ctx, true /* quiet */);
} else if (ctx->slack_redist_iter > 0 && iter % ctx->slack_redist_iter == 0) {
assign_budget(ctx, true /* quiet */);
}