aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-08 19:23:47 +0200
committerGitHub <noreply@github.com>2018-08-08 19:23:47 +0200
commitcd4e761bb799ca99f02d3aa177961af28a93f2d8 (patch)
treea6424fb4ea70b868efb1375bb9cf3db992e3059c /common/placer1.cc
parent2390f7f59c05870845da349536cb384964cdb874 (diff)
parent751335977fe7d69b23f6110ec4938408ec7a7ff8 (diff)
downloadnextpnr-cd4e761bb799ca99f02d3aa177961af28a93f2d8.tar.gz
nextpnr-cd4e761bb799ca99f02d3aa177961af28a93f2d8.tar.bz2
nextpnr-cd4e761bb799ca99f02d3aa177961af28a93f2d8.zip
Merge pull request #44 from YosysHQ/improve_timing_spec
Speed up budget allocator using topographical ordering and update cell timing API
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 1d00e77a..51ef271a 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -236,7 +236,10 @@ class SAPlacer
temp = post_legalise_temp;
diameter *= post_legalise_dia_scale;
ctx->shuffle(autoplaced);
- assign_budget(ctx);
+
+ // 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 */);
}