router2: speedup
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
59c554b50a
commit
bbc9c9b0ba
@ -399,6 +399,7 @@ struct Router2
|
|||||||
cursor2 = ctx->getPipSrcWire(p);
|
cursor2 = ctx->getPipSrcWire(p);
|
||||||
t.backwards_pip[cursor2] = p;
|
t.backwards_pip[cursor2] = p;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
cpip = cwd.bound_nets.at(net->udata).second;
|
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.cost = curr.score.cost + score_wire_for_arc(net, i, next, dh);
|
||||||
next_score.delay =
|
next_score.delay =
|
||||||
curr.score.delay + ctx->getPipDelay(dh).maxDelay() + ctx->getWireDelay(next).maxDelay();
|
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 (!t.visited.count(next) || (t.visited.at(next).score.total() > next_score.total())) {
|
||||||
#if 0
|
#if 0
|
||||||
ROUTE_LOG_DBG("exploring wire %s cost %f togo %f\n", ctx->nameOfWire(next), next_score.cost,
|
ROUTE_LOG_DBG("exploring wire %s cost %f togo %f\n", ctx->nameOfWire(next), next_score.cost,
|
||||||
|
Loading…
Reference in New Issue
Block a user