diff options
author | David Shah <davey1576@gmail.com> | 2018-08-18 11:54:53 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-08-18 11:54:53 +0200 |
commit | 5fe29922fd15af87cd260a561e88ac2e5b27203d (patch) | |
tree | b613b51d87e3619c83821a9ee8e1928e8214179a | |
parent | 3c510070260593169f84a85e3c10b4e5e22d1951 (diff) | |
download | nextpnr-5fe29922fd15af87cd260a561e88ac2e5b27203d.tar.gz nextpnr-5fe29922fd15af87cd260a561e88ac2e5b27203d.tar.bz2 nextpnr-5fe29922fd15af87cd260a561e88ac2e5b27203d.zip |
ecp5: Speedup router with slightly better estimates
Signed-off-by: David Shah <davey1576@gmail.com>
-rw-r--r-- | ecp5/arch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 4358fdaf..fec1011c 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -367,7 +367,7 @@ BelId Arch::getBelByLocation(Loc loc) const delay_t Arch::estimateDelay(WireId src, WireId dst) const { - return 200 * (abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y)); + return 50 * (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 @@ -376,7 +376,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 200 * (abs(driver_loc.x - sink_loc.x) + abs(driver_loc.y - sink_loc.y)); + return 50 * (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; } |