Restore initial assign_budget() call after pack(), restrict call after initial_placement to slack_redist

This commit is contained in:
Eddie Hung 2018-08-05 22:55:58 -07:00
parent 6c8319e29a
commit f048deb33d
2 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,8 @@ class SAPlacer
if ((placed_cells - constr_placed_cells) % 500 != 0) if ((placed_cells - constr_placed_cells) % 500 != 0)
log_info(" initial placement placed %d/%d cells\n", int(placed_cells - constr_placed_cells), log_info(" initial placement placed %d/%d cells\n", int(placed_cells - constr_placed_cells),
int(autoplaced.size())); int(autoplaced.size()));
assign_budget(ctx); if (ctx->slack_redist_iter > 0)
assign_budget(ctx);
ctx->yield(); ctx->yield();
log_info("Running simulated annealing placer.\n"); log_info("Running simulated annealing placer.\n");

View File

@ -366,6 +366,7 @@ int main(int argc, char *argv[])
if (!ctx->pack() && !ctx->force) if (!ctx->pack() && !ctx->force)
log_error("Packing design failed.\n"); log_error("Packing design failed.\n");
assign_budget(ctx.get());
ctx->check(); ctx->check();
print_utilisation(ctx.get()); print_utilisation(ctx.get());
if (!vm.count("pack-only")) { if (!vm.count("pack-only")) {