aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-03 18:14:09 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-03 18:14:09 +0200
commit4a751d9aafa0de4f64960bf7e9f16400319259ef (patch)
treecf029a91ede496085b43c0b6c4144e5543274057 /common/placer1.cc
parentaa8435df218de50825bdcbcfe4ee88f26c3ff836 (diff)
downloadnextpnr-4a751d9aafa0de4f64960bf7e9f16400319259ef.tar.gz
nextpnr-4a751d9aafa0de4f64960bf7e9f16400319259ef.tar.bz2
nextpnr-4a751d9aafa0de4f64960bf7e9f16400319259ef.zip
Add distance moved metrics, changing heuristics
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 673e304f..6da8608a 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -395,7 +395,7 @@ private:
if (other != IdString())
new_dist += get_constraints_distance(ctx, other_cell);
delta = new_metric - curr_metric;
- delta += (1 / temp) * (new_dist - old_dist);
+ delta += (10 / temp) * (new_dist - old_dist);
n_move++;
// SA acceptance criterea
if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) {