diff options
author | David Shah <dave@ds0.me> | 2019-12-10 12:45:38 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-02-03 11:38:31 +0000 |
commit | 900fe98f0da27fa4902dfc9494d575010889ef91 (patch) | |
tree | d5169f79506f7e5fe9f9e87633c06978f85ed723 | |
parent | 3b6d9c952a45292c93de19040868c2c2ae562f26 (diff) | |
download | nextpnr-900fe98f0da27fa4902dfc9494d575010889ef91.tar.gz nextpnr-900fe98f0da27fa4902dfc9494d575010889ef91.tar.bz2 nextpnr-900fe98f0da27fa4902dfc9494d575010889ef91.zip |
router2: reduce bias cost factor
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r-- | common/router2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc index 5f3ebeea..228cf7f0 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -304,7 +304,7 @@ struct Router2 source_uses = wd.bound_nets.at(net->udata).first; if (pip != PipId()) { Loc pl = ctx->getPipLocation(pip); - bias_cost = 0.5f * (base_cost / int(net->users.size())) * + bias_cost = 0.25f * (base_cost / int(net->users.size())) * ((std::abs(pl.x - nd.cx) + std::abs(pl.y - nd.cy)) / float(nd.hpwl)); } return base_cost * hist_cost * present_cost / (1 + source_uses) + bias_cost; |