diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-07-30 18:59:04 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-07-30 18:59:04 -0700 |
commit | d5049bf0eda113db9a218fe855c7e3d7d65b4384 (patch) | |
tree | 5df283caca55eba1883788a702ac1e6547c52be5 /ecp5 | |
parent | 8371c0dd09e5b59189a391fb1b867e5249442046 (diff) | |
parent | 0daffec2a0efdbea36201eeb5666d208a10d0226 (diff) | |
download | nextpnr-d5049bf0eda113db9a218fe855c7e3d7d65b4384.tar.gz nextpnr-d5049bf0eda113db9a218fe855c7e3d7d65b4384.tar.bz2 nextpnr-d5049bf0eda113db9a218fe855c7e3d7d65b4384.zip |
Merge remote-tracking branch 'origin/estdelay' into redist_slack
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/arch.cc | 5 | ||||
-rw-r--r-- | ecp5/arch.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index c1b51f34..fa36e1f8 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -413,6 +413,11 @@ 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)); } +delay_t Arch::predictDelay(WireId src, WireId dst) const +{ + return 200 * (abs(src.location.x - dst.location.x) + abs(src.location.y - dst.location.y)); +} + delay_t Arch::getBudgetOverride(NetInfo *net_info, int user_idx, delay_t budget) const { return budget; } // ----------------------------------------------------------------------- diff --git a/ecp5/arch.h b/ecp5/arch.h index e2f33cae..5e181d49 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -776,6 +776,7 @@ struct Arch : BaseCtx // ------------------------------------------------- delay_t estimateDelay(WireId src, WireId dst) const; + delay_t predictDelay(WireId src, WireId dst) const; delay_t getDelayEpsilon() const { return 20; } delay_t getRipupDelayPenalty() const { return 200; } float getDelayNS(delay_t v) const { return v * 0.001; } |