fixup! gatemate: Override router2 cost function to account for low-delay pips

This commit is contained in:
gatecat 2026-08-15 11:15:13 +02:00
parent 6710ec45aa
commit 6927dbe548
1 changed files with 2 additions and 2 deletions

View File

@ -1083,8 +1083,8 @@ void GateMateImpl::configurePlacerStatic(PlacerStaticCfg &cfg)
void GateMateImpl::configureRouter2(Router2Cfg &cfg) {
cfg.get_base_cost = [](Context *ctx, WireId wire, PipId pip, float crit_weight) {
float delay_cost = ctx->getDelayNS(ctx->getPipDelay(pip).maxDelay() + ctx->getWireDelay(wire).maxDelay() + ctx->getDelayEpsilon());
const float rr_cost = 0.5f; // fundamental cost of using a routing resource
return delay_cost + rr_cost * (1.0f - crit_weight);
const float rr_cost = 0.1f; // fundamental cost of using a routing resource
return delay_cost + rr_cost * crit_weight;
// return delay_cost;
};
}