aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-12-07 21:23:34 +0000
committerDavid Shah <dave@ds0.me>2019-03-22 10:31:28 +0000
commita218c27305c9be824531195d99d68c6f86782830 (patch)
tree93426be27ef487eadfc4a760cfcda12245df92e6 /common/placer1.cc
parent3938ea41fc00afc441c411c3de0403d4652d08c4 (diff)
downloadnextpnr-a218c27305c9be824531195d99d68c6f86782830.tar.gz
nextpnr-a218c27305c9be824531195d99d68c6f86782830.tar.bz2
nextpnr-a218c27305c9be824531195d99d68c6f86782830.zip
placer1: Tuning
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index fe56b4af..f78bf16c 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -206,8 +206,8 @@ class SAPlacer
if (iter % 5 == 0 || iter == 1)
log_info(" at iteration #%d: temp = %f, timing cost = "
- "%.0f, wirelen = %.0f est tns = %.02fns\n",
- iter, temp, double(curr_timing_cost), double(curr_wirelen_cost), curr_tns);
+ "%.0f, wirelen = %.0f\n",
+ iter, temp, double(curr_timing_cost), double(curr_wirelen_cost));
for (int m = 0; m < 15; ++m) {
// Loop through all automatically placed cells
@@ -234,8 +234,8 @@ class SAPlacer
if (temp <= 1e-3 && n_no_progress >= 5) {
log_info(" at iteration #%d: temp = %f, timing cost = "
- "%.0f, wirelen = %.0f est tns = %.02fns\n",
- iter, temp, double(curr_timing_cost), double(curr_wirelen_cost), curr_tns);
+ "%.0f, wirelen = %.0f \n",
+ iter, temp, double(curr_timing_cost), double(curr_wirelen_cost));
break;
}
@@ -434,7 +434,7 @@ class SAPlacer
delta += (cfg.constraintWeight / temp) * (new_dist - old_dist) / last_wirelen_cost;
n_move++;
// SA acceptance criterea
- if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x0fffffff)) <= std::exp(-delta / temp))) {
+ if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x0fffffff)) <= std::exp(-100*delta / temp))) {
n_accept++;
} else {
if (other_cell != nullptr)
@@ -670,7 +670,6 @@ class SAPlacer
NetCriticalityMap net_crit;
Context *ctx;
- float curr_tns = 0;
float temp = 1000;
float crit_exp = 8;
float lambda = 0.5;