From c7ad3cece64a7e3de7789c57d91d79cc361966e8 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 12 Nov 2020 11:48:21 +0000 Subject: nexus: Tweak delay heuristics Signed-off-by: David Shah --- nexus/arch.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nexus/arch.cc b/nexus/arch.cc index f4a88dfb..6cc0da0f 100644 --- a/nexus/arch.cc +++ b/nexus/arch.cc @@ -545,19 +545,21 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const int dst_x = dst.tile % chip_info->width, dst_y = dst.tile / chip_info->width; int dist_x = std::abs(src_x - dst_x); int dist_y = std::abs(src_y - dst_y); - return 100 * dist_x + 100 * dist_y; + return 100 * dist_x + 100 * dist_y + 250; } delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const { if (net_info->driver.cell == nullptr || net_info->driver.cell->bel == BelId() || sink.cell->bel == BelId()) return 0; + if (sink.port == id_FCI) + return 0; int src_x = net_info->driver.cell->bel.tile % chip_info->width, src_y = net_info->driver.cell->bel.tile / chip_info->width; int dst_x = sink.cell->bel.tile % chip_info->width, dst_y = sink.cell->bel.tile / chip_info->width; int dist_x = std::abs(src_x - dst_x); int dist_y = std::abs(src_y - dst_y); - return 100 * dist_x + 100 * dist_y; + return 100 * dist_x + 100 * dist_y + 250; } bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay_t &budget) const { return false; } -- cgit v1.2.3