mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-25 20:01:22 +00:00
router2: Don't use estimates for constant nets
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
@@ -782,7 +782,7 @@ struct Router2
|
||||
next_score.delay = curr.score.delay + cfg.get_base_cost(ctx, next, uh, crit_weight);
|
||||
next_score.cost = curr.score.cost + score_wire_for_arc(net, i, phys_pin, next, uh, crit_weight);
|
||||
next_score.togo_cost =
|
||||
cfg.estimate_weight * get_togo_cost(net, i, next_idx, src_wire, true, crit_weight);
|
||||
const_mode ? 0 : cfg.estimate_weight * get_togo_cost(net, i, next_idx, src_wire, true, crit_weight);
|
||||
if (was_visited_bwd(next_idx, next_score.delay)) {
|
||||
// Don't expand the same node twice.
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user