mirror of https://github.com/YosysHQ/nextpnr.git
fixup! gatemate: Override router2 cost function to account for low-delay pips
This commit is contained in:
parent
6710ec45aa
commit
6927dbe548
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue