aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-03-24 13:59:27 +0000
committerDavid Shah <dave@ds0.me>2019-03-24 13:59:27 +0000
commitefc687234181d6ab464230d3844313c2fcf51282 (patch)
treed1b17f730530977b9385d097e8eb203fe8e8da2a
parent00b09fbb435fa5bece77c95435cb66e1f05ddca8 (diff)
downloadnextpnr-efc687234181d6ab464230d3844313c2fcf51282.tar.gz
nextpnr-efc687234181d6ab464230d3844313c2fcf51282.tar.bz2
nextpnr-efc687234181d6ab464230d3844313c2fcf51282.zip
placer1: Restore old weighting in budget-based mode
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--common/placer1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 99b24640..a71cbc9a 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -740,7 +740,7 @@ class SAPlacer
return 0;
if (cfg.budgetBased) {
double delay = ctx->getDelayNS(ctx->predictDelay(net, net->users.at(user)));
- return std::min(10.0, std::exp(delay - ctx->getDelayNS(net->users.at(user).budget)));
+ return std::min(10.0, std::exp(delay - ctx->getDelayNS(net->users.at(user).budget) / 10));
} else {
auto crit = net_crit.find(net->name);
if (crit == net_crit.end() || crit->second.criticality.empty())