diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-06 12:02:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 12:02:55 -0700 |
commit | 0b1c67cad348d0470d81aa6d6e72b25a4972f525 (patch) | |
tree | 32e411ea827ff82f7af1e7e930a034cb019a75f1 /common/placer1.cc | |
parent | 6c8319e29a68d8d54b747e95c3f4a8df8a14d3ba (diff) | |
parent | 2fb934b107d63b43afcde0e724a91c33500fe95c (diff) | |
download | nextpnr-0b1c67cad348d0470d81aa6d6e72b25a4972f525.tar.gz nextpnr-0b1c67cad348d0470d81aa6d6e72b25a4972f525.tar.bz2 nextpnr-0b1c67cad348d0470d81aa6d6e72b25a4972f525.zip |
Merge pull request #38 from eddiehung/assign_budget_evenly
Restore original assign_budget behaviour (to distribute slack evenly)
Diffstat (limited to 'common/placer1.cc')
-rw-r--r-- | common/placer1.cc | 3 |
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"); |