gatemate: improve estimateDelay (#1494)

This commit is contained in:
Lofty 2025-05-22 08:15:12 +01:00 committed by GitHub
parent 06d3408ba4
commit 9cfc7ee263
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ delay_t GateMateImpl::estimateDelay(WireId src, WireId dst) const
tile_xy(ctx->chip_info, src.tile, sx, sy);
tile_xy(ctx->chip_info, dst.tile, dx, dy);
return 100 * (std::abs(dx - sx) / 4 + std::abs(dy - sy) / 4 + 2);
return 100 + 100 * (std::abs(dx - sx) + std::abs(dy - sy));
}
bool GateMateImpl::isBelLocationValid(BelId bel, bool explain_invalid) const