aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-12-09 14:41:02 +0000
committerDavid Shah <dave@ds0.me>2019-03-22 10:31:54 +0000
commit222abb5be29a95538f37ed28760df68b037b2a52 (patch)
treeb763b528381b2dd90be180bdf6222022607ce436
parentc926b273ded6e6d805ae66d1f9c5be8a85156ca8 (diff)
downloadnextpnr-222abb5be29a95538f37ed28760df68b037b2a52.tar.gz
nextpnr-222abb5be29a95538f37ed28760df68b037b2a52.tar.bz2
nextpnr-222abb5be29a95538f37ed28760df68b037b2a52.zip
placer1: Encourage chain swaps
Signed-off-by: David Shah <davey1576@gmail.com>
-rw-r--r--common/placer1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index db10b7d3..ecb61b5c 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -553,7 +553,7 @@ class SAPlacer
(1 - lambda) * (double(moveChange.wirelen_delta) / last_wirelen_cost);
n_move++;
// SA acceptance criterea
- if (delta < 0 || (temp > 1e-8 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) {
+ if (delta < 0 || (temp > 1e-9 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / (5 * temp)))) {
n_accept++;
if (ctx->debug)
log_info("accepted chain swap %s\n", cell->name.c_str(ctx));