aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-13 14:27:23 +0000
committerDavid Shah <dave@ds0.me>2018-11-13 14:27:23 +0000
commit959d163ba71fd2fdf08911e9be47f4f1d60514e5 (patch)
tree75b5a800949cac76fd1118040c691b33375f2226 /ecp5
parent06e0e1ffeec9b06cecc213728c279b9235316df9 (diff)
downloadnextpnr-959d163ba71fd2fdf08911e9be47f4f1d60514e5.tar.gz
nextpnr-959d163ba71fd2fdf08911e9be47f4f1d60514e5.tar.bz2
nextpnr-959d163ba71fd2fdf08911e9be47f4f1d60514e5.zip
ecp5: Improve delay estimates
Signed-off-by: David Shah <dave@ds0.me>
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 4a0b31b5..ffd6ebcd 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -400,7 +400,7 @@ BelId Arch::getBelByLocation(Loc loc) const
delay_t Arch::estimateDelay(WireId src, WireId dst) const
{
- return 100 * (abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y));
+ return 170 * (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
@@ -409,7 +409,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 100 * (abs(driver_loc.x - sink_loc.x) + abs(driver_loc.y - sink_loc.y));
+ return 170 * (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 { return false; }