diff options
author | David Shah <davey1576@gmail.com> | 2018-06-22 12:34:42 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-22 12:34:42 +0200 |
commit | 71176ac5384c696dde1d5601ea1beb5c46f281c6 (patch) | |
tree | b7085a55f2fbc777e79bb76d3e69648d41e5be36 /common | |
parent | 2c98231f88cd145267048b32a5ce0e4deadc2716 (diff) | |
download | nextpnr-71176ac5384c696dde1d5601ea1beb5c46f281c6.tar.gz nextpnr-71176ac5384c696dde1d5601ea1beb5c46f281c6.tar.bz2 nextpnr-71176ac5384c696dde1d5601ea1beb5c46f281c6.zip |
Fixing 5k bitstream gen and place heuristics
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/place_sa.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc index 69ba968f..cd4e7282 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -410,9 +410,8 @@ class SAPlacer delta = new_wirelength - curr_wirelength; n_move++; // SA acceptance criterea - if (delta < 0 || (temp > 1e-6 && - (ctx->rng() / float(0x3fffffff)) <= - std::exp(-(delta / 2) / temp))) { + if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <= + std::exp(-delta / temp))) { n_accept++; if (delta < 2) improved = true; |