diff options
author | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-21 12:27:44 -0700 |
---|---|---|
committer | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-21 12:27:44 -0700 |
commit | 31c9fd28fe59902311d61519537eae06f0f915d0 (patch) | |
tree | bdf5cb28dda96dadd92f62f88f8b0ecf1b2cb887 /common/place_common.cc | |
parent | f176ee48cdd6b508f6f26e7b2ccca97a680929cf (diff) | |
parent | dfdeb21690181044a95c2b2d64c197c999507b0c (diff) | |
download | nextpnr-31c9fd28fe59902311d61519537eae06f0f915d0.tar.gz nextpnr-31c9fd28fe59902311d61519537eae06f0f915d0.tar.bz2 nextpnr-31c9fd28fe59902311d61519537eae06f0f915d0.zip |
Merge remote-tracking branch 'origin/master' into redist_slack
Diffstat (limited to 'common/place_common.cc')
-rw-r--r-- | common/place_common.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/place_common.cc b/common/place_common.cc index b2f0e849..370eff23 100644 --- a/common/place_common.cc +++ b/common/place_common.cc @@ -130,10 +130,11 @@ bool place_single_cell(Context *ctx, CellInfo *cell, bool require_legality) if (iters >= 4) wirelen += ctx->rng(25); if (wirelen <= best_ripup_wirelen) { - ripup_target = ctx->cells.at(ctx->getBoundBelCell(bel)).get(); - if (ripup_target->belStrength < STRENGTH_STRONG) { + CellInfo *curr_cell = ctx->cells.at(ctx->getBoundBelCell(bel)).get(); + if (curr_cell->belStrength < STRENGTH_STRONG) { best_ripup_wirelen = wirelen; ripup_bel = bel; + ripup_target = curr_cell; } } } |