aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-06 07:35:00 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-06 07:35:00 -0700
commit665202e9361bf4229ec4e1fe833c5592624f1230 (patch)
treea4421365c658c11e92187af5e96a092898197db1 /common/placer1.cc
parente314ea761abd8f55b3341f733c01d13ce2d4fae5 (diff)
parent2fb934b107d63b43afcde0e724a91c33500fe95c (diff)
downloadnextpnr-665202e9361bf4229ec4e1fe833c5592624f1230.tar.gz
nextpnr-665202e9361bf4229ec4e1fe833c5592624f1230.tar.bz2
nextpnr-665202e9361bf4229ec4e1fe833c5592624f1230.zip
Merge branch 'assign_budget_evenly' into assign_budget_speedup
Conflicts: common/timing.cc
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 4ba0f3cf..1d00e77a 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -138,7 +138,8 @@ class SAPlacer
if ((placed_cells - constr_placed_cells) % 500 != 0)
log_info(" initial placement placed %d/%d cells\n", int(placed_cells - constr_placed_cells),
int(autoplaced.size()));
- assign_budget(ctx);
+ if (ctx->slack_redist_iter > 0)
+ assign_budget(ctx);
ctx->yield();
log_info("Running simulated annealing placer.\n");