aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-19 17:10:55 +0100
committerDavid Shah <davey1576@gmail.com>2018-08-19 17:10:55 +0100
commit1b3a201a54d36085a0675ebaebda523645ad45b3 (patch)
tree1e66bc0c69dad417db49191de5f76263acb40b87 /ecp5
parentec948487741d982707122f96d127af1f3c95ee66 (diff)
downloadnextpnr-1b3a201a54d36085a0675ebaebda523645ad45b3.tar.gz
nextpnr-1b3a201a54d36085a0675ebaebda523645ad45b3.tar.bz2
nextpnr-1b3a201a54d36085a0675ebaebda523645ad45b3.zip
ecp5: Fix delay heuristic
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index f9853ae2..57ba480d 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -372,7 +372,7 @@ BelId Arch::getBelByLocation(Loc loc) const
delay_t Arch::estimateDelay(WireId src, WireId dst) const
{
- return 50 * (abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y));
+ return 100 * (abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y));
}
delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
@@ -381,7 +381,7 @@ delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
auto driver_loc = getBelLocation(driver.cell->bel);
auto sink_loc = getBelLocation(sink.cell->bel);
- return 50 * (abs(driver_loc.x - sink_loc.x) + abs(driver_loc.y - sink_loc.y));
+ return 100 * (abs(driver_loc.x - sink_loc.x) + abs(driver_loc.y - sink_loc.y));
}
bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay_t &budget) const