diff options
author | David Shah <dave@ds0.me> | 2019-11-20 16:01:53 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-02-03 11:38:31 +0000 |
commit | bbc9c9b0ba0a326856daabc30f0ca1fc8d6ddee0 (patch) | |
tree | d72155c43f6cd77681a93886ce426785024d0d18 /common | |
parent | 59c554b50ad599cbfc6f832b6942075efe3a0dbe (diff) | |
download | nextpnr-bbc9c9b0ba0a326856daabc30f0ca1fc8d6ddee0.tar.gz nextpnr-bbc9c9b0ba0a326856daabc30f0ca1fc8d6ddee0.tar.bz2 nextpnr-bbc9c9b0ba0a326856daabc30f0ca1fc8d6ddee0.zip |
router2: speedup
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r-- | common/router2.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc index 271595ad..7e45c122 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -399,6 +399,7 @@ struct Router2 cursor2 = ctx->getPipSrcWire(p); t.backwards_pip[cursor2] = p; } + break; } cpip = cwd.bound_nets.at(net->udata).second; } @@ -494,7 +495,7 @@ struct Router2 next_score.cost = curr.score.cost + score_wire_for_arc(net, i, next, dh); next_score.delay = curr.score.delay + ctx->getPipDelay(dh).maxDelay() + ctx->getWireDelay(next).maxDelay(); - next_score.togo_cost = 1.5 * get_togo_cost(net, i, next, dst_wire); + next_score.togo_cost = 1.75 * get_togo_cost(net, i, next, dst_wire); if (!t.visited.count(next) || (t.visited.at(next).score.total() > next_score.total())) { #if 0 ROUTE_LOG_DBG("exploring wire %s cost %f togo %f\n", ctx->nameOfWire(next), next_score.cost, |