machxo2: less pessimistic delay prediction

This commit is contained in:
Lofty 2023-11-09 01:29:50 +00:00 committed by myrtle
parent 4c6003ac0b
commit 506d5f9422

View File

@ -476,7 +476,7 @@ delay_t Arch::predictDelay(BelId src_bel, IdString src_pin, BelId dst_bel, IdStr
int dx = abs(driver_loc.x - sink_loc.x), dy = abs(driver_loc.y - sink_loc.y);
return (500 - 22 * device_speed) *
return (250 - 22 * device_speed) *
(3 + std::max(dx - 5, 0) + std::max(dy - 5, 0) + 2 * (std::min(dx, 5) + std::min(dy, 5)));
}