diff options
author | gatecat <gatecat@ds0.me> | 2022-04-20 11:29:08 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-04-20 11:29:08 +0100 |
commit | a35c80cc10c69f88ceddee604ea29f172fbae1c0 (patch) | |
tree | 26eff19abb5748784d87d58f34ca2942a3106cf0 /ecp5 | |
parent | b8f9f2daa2942395f15e33bcf6700e6f67667675 (diff) | |
download | nextpnr-a35c80cc10c69f88ceddee604ea29f172fbae1c0.tar.gz nextpnr-a35c80cc10c69f88ceddee604ea29f172fbae1c0.tar.bz2 nextpnr-a35c80cc10c69f88ceddee604ea29f172fbae1c0.zip |
ecp5: Tweak delay prediction
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/arch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 50993e2b..d98ee54c 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -580,7 +580,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 (120 - 22 * args.speed) * - (6 + std::max(dx - 5, 0) + std::max(dy - 5, 0) + 2 * (std::min(dx, 5) + std::min(dy, 5))); + (3 + std::max(dx - 5, 0) + std::max(dy - 5, 0) + 2 * (std::min(dx, 5) + std::min(dy, 5))); } bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay_t &budget) const |