diff options
author | David Shah <davey1576@gmail.com> | 2018-08-03 18:14:09 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-08-03 18:14:09 +0200 |
commit | 4a751d9aafa0de4f64960bf7e9f16400319259ef (patch) | |
tree | cf029a91ede496085b43c0b6c4144e5543274057 /common/placer1.cc | |
parent | aa8435df218de50825bdcbcfe4ee88f26c3ff836 (diff) | |
download | nextpnr-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.cc | 2 |
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))) { |