aboutsummaryrefslogtreecommitdiffstats
path: root/common/router2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/router2.cc')
-rw-r--r--common/router2.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/router2.cc b/common/router2.cc
index 1f9196ab..813249b4 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -355,8 +355,7 @@ struct Router2
{
auto &wd = wire_data(wire);
auto &nd = nets.at(net->udata);
- float base_cost = ctx->getDelayNS(ctx->getPipDelay(pip).maxDelay() + ctx->getWireDelay(wire).maxDelay() +
- ctx->getDelayEpsilon());
+ float base_cost = cfg.get_base_cost(ctx, wire, pip, crit_weight);
int overuse = wd.curr_cong;
float hist_cost = 1.0f + crit_weight * (wd.hist_cong_cost - 1.0f);
float bias_cost = 0;