From 38431bd420ff2dcbaa9581571e6d0302dcfe2379 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 22 Jul 2018 16:55:10 +0200 Subject: ecp5: Fix regression following router update Signed-off-by: David Shah --- ecp5/arch.cc | 2 +- ecp5/arch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ecp5/arch.cc b/ecp5/arch.cc index f6ee0711..c7896ca6 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -325,7 +325,7 @@ void Arch::estimatePosition(BelId bel, int &x, int &y, bool &gb) const delay_t Arch::estimateDelay(WireId src, WireId dst) const { - return abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y); + return 200 * (abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y)); } // ----------------------------------------------------------------------- diff --git a/ecp5/arch.h b/ecp5/arch.h index 234773e3..13b2c3b8 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -694,7 +694,7 @@ struct Arch : BaseCtx { DelayInfo delay; NPNR_ASSERT(pip != PipId()); - delay.delay = locInfo(pip)->pip_data[pip.index].delay; + delay.delay = locInfo(pip)->pip_data[pip.index].delay * 100; return delay; } -- cgit v1.2.3