diff options
author | David Shah <davey1576@gmail.com> | 2018-06-20 13:01:30 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-20 13:01:30 +0200 |
commit | c667f640d50b8b6ac7c3c3a25f0990c1ba522ae3 (patch) | |
tree | 99d69744331bbfed7627c2bd792abe0a0251b7da /dummy | |
parent | 4648d3bc839f1c8458d3b96bc572774600eaa33f (diff) | |
parent | 37f7802c6cfb9d9612e595c9914704c5403db9df (diff) | |
download | nextpnr-c667f640d50b8b6ac7c3c3a25f0990c1ba522ae3.tar.gz nextpnr-c667f640d50b8b6ac7c3c3a25f0990c1ba522ae3.tar.bz2 nextpnr-c667f640d50b8b6ac7c3c3a25f0990c1ba522ae3.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'dummy')
-rw-r--r-- | dummy/arch.cc | 8 | ||||
-rw-r--r-- | dummy/arch.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/dummy/arch.cc b/dummy/arch.cc index fa0d8bd3..103eee4d 100644 --- a/dummy/arch.cc +++ b/dummy/arch.cc @@ -141,11 +141,11 @@ const std::vector<PipId> &Arch::getWireAliases(WireId wire) const // --------------------------------------------------------------- -bool Arch::estimatePosition(BelId bel, int &x, int &y) const +void Arch::estimatePosition(BelId bel, int &x, int &y, bool &gb) const { - x = 0.0; - y = 0.0; - return false; + x = 0; + y = 0; + gb = false; } delay_t Arch::estimateDelay(WireId src, WireId dst) const { return 0.0; } diff --git a/dummy/arch.h b/dummy/arch.h index 39c48232..43ab3290 100644 --- a/dummy/arch.h +++ b/dummy/arch.h @@ -120,8 +120,10 @@ struct Arch : BaseCtx const std::vector<PipId> &getPipsUphill(WireId wire) const; const std::vector<PipId> &getWireAliases(WireId wire) const; - bool estimatePosition(BelId bel, int &x, int &y) const; + void estimatePosition(BelId bel, int &x, int &y, bool &gb) const; delay_t estimateDelay(WireId src, WireId dst) const; + delay_t getDelayEpsilon() const { return 0.01; } + float getDelayNS(delay_t v) const { return v; } std::vector<GraphicElement> getFrameGraphics() const; std::vector<GraphicElement> getBelGraphics(BelId bel) const; |