aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-11-12 11:48:21 +0000
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:28 +0000
commitc7ad3cece64a7e3de7789c57d91d79cc361966e8 (patch)
treed8ff137f99bd73aa0f1087468f97cd16774946c0
parenta69c595802bb20517ced3a2a82a6dde4b8dc6a03 (diff)
downloadnextpnr-c7ad3cece64a7e3de7789c57d91d79cc361966e8.tar.gz
nextpnr-c7ad3cece64a7e3de7789c57d91d79cc361966e8.tar.bz2
nextpnr-c7ad3cece64a7e3de7789c57d91d79cc361966e8.zip
nexus: Tweak delay heuristics
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--nexus/arch.cc6
1 files 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; }