aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-05 22:55:58 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-05 22:55:58 -0700
commitf048deb33dcc1f334fbe54877bdeb4ce4a5ca35d (patch)
treeb4f20bbbb207a53b9cba48c19d5aa6a81696c28a /common/placer1.cc
parent6c8319e29a68d8d54b747e95c3f4a8df8a14d3ba (diff)
downloadnextpnr-f048deb33dcc1f334fbe54877bdeb4ce4a5ca35d.tar.gz
nextpnr-f048deb33dcc1f334fbe54877bdeb4ce4a5ca35d.tar.bz2
nextpnr-f048deb33dcc1f334fbe54877bdeb4ce4a5ca35d.zip
Restore initial assign_budget() call after pack(), restrict call after initial_placement to slack_redist
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");