aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-22 16:55:10 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-22 16:55:10 +0200
commit38431bd420ff2dcbaa9581571e6d0302dcfe2379 (patch)
tree7b51abce59474139be3fc81127cee8340619c082
parente13fc7edabb449d21ad6473bab23d5c1b2cf3761 (diff)
downloadnextpnr-38431bd420ff2dcbaa9581571e6d0302dcfe2379.tar.gz
nextpnr-38431bd420ff2dcbaa9581571e6d0302dcfe2379.tar.bz2
nextpnr-38431bd420ff2dcbaa9581571e6d0302dcfe2379.zip
ecp5: Fix regression following router update
Signed-off-by: David Shah <davey1576@gmail.com>
-rw-r--r--ecp5/arch.cc2
-rw-r--r--ecp5/arch.h2
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;
}