From c708a4e0d39248e4b319d4b68ce42bd386450652 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 6 Dec 2018 16:11:15 -0800 Subject: [PATCH] Fix leftover divide by 2 in Arch::estimateDelay() --- xc7/delay.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xc7/delay.cc b/xc7/delay.cc index 0df02f7e..6606fc37 100644 --- a/xc7/delay.cc +++ b/xc7/delay.cc @@ -104,8 +104,7 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const const auto &src_info = torc_info->tiles.getTileInfo(src_tw.getTileIndex()); const auto &dst_tw = torc_info->wire_to_tilewire[dst.index]; const auto &dst_info = torc_info->tiles.getTileInfo(dst_tw.getTileIndex()); - auto abs_delta_x = (abs(src_info.getCol() - dst_info.getCol()) + 1) / - 2; // Divide by 2 because XDL coordinate space counts the INT tiles between CLBs + auto abs_delta_x = abs(src_info.getCol() - dst_info.getCol()); auto abs_delta_y = abs(src_info.getRow() - dst_info.getRow()); #if 1 auto div_LH = std::div(abs_delta_x, 12);