From 1436ae21a2d9a214f7585deb2f038ff87ce4862c Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Jun 2018 11:44:28 +0200 Subject: Adding stubs for delay annotation and cell timing lookup Signed-off-by: David Shah --- dummy/arch.cc | 18 ++++++++++++++++++ dummy/arch.h | 7 +++++++ 2 files changed, 25 insertions(+) (limited to 'dummy') diff --git a/dummy/arch.cc b/dummy/arch.cc index fb54c74f..64841374 100644 --- a/dummy/arch.cc +++ b/dummy/arch.cc @@ -176,4 +176,22 @@ std::vector Arch::getPipGraphics(PipId pip) const return ret; } +// --------------------------------------------------------------- + +delay_t Arch::getCellDelay(const CellInfo *cell, IdString fromPort, + IdString toPort) const +{ + return 0; +} + +IdString Arch::getPortClock(const CellInfo *cell, IdString port) const +{ + return IdString(); +} + +bool Arch::isClockPort(const CellInfo *cell, IdString port) const +{ + return false; +} + NEXTPNR_NAMESPACE_END diff --git a/dummy/arch.h b/dummy/arch.h index 02bec23a..61a09e00 100644 --- a/dummy/arch.h +++ b/dummy/arch.h @@ -32,7 +32,9 @@ struct DelayInfo delay_t delay = 0; delay_t raiseDelay() const { return delay; } + delay_t fallDelay() const { return delay; } + delay_t avgDelay() const { return delay; } DelayInfo operator+(const DelayInfo &other) const @@ -131,6 +133,11 @@ struct Arch : BaseCtx std::unordered_set belGraphicsReload; std::unordered_set wireGraphicsReload; std::unordered_set pipGraphicsReload; + + delay_t getCellDelay(const CellInfo *cell, IdString fromPort, + IdString toPort) const; + IdString getPortClock(const CellInfo *cell, IdString port) const; + bool isClockPort(const CellInfo *cell, IdString port) const; }; NEXTPNR_NAMESPACE_END -- cgit v1.2.3 From 5ca4663294aff1f4af45e9abfffa20c1e44ea017 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Jun 2018 12:21:56 +0200 Subject: Working on the timing budget annnotator Signed-off-by: David Shah --- dummy/arch.cc | 6 +++--- dummy/arch.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dummy') diff --git a/dummy/arch.cc b/dummy/arch.cc index 64841374..fa0d8bd3 100644 --- a/dummy/arch.cc +++ b/dummy/arch.cc @@ -178,10 +178,10 @@ std::vector Arch::getPipGraphics(PipId pip) const // --------------------------------------------------------------- -delay_t Arch::getCellDelay(const CellInfo *cell, IdString fromPort, - IdString toPort) const +bool Arch::getCellDelay(const CellInfo *cell, IdString fromPort, + IdString toPort, delay_t &delay) const { - return 0; + return false; } IdString Arch::getPortClock(const CellInfo *cell, IdString port) const diff --git a/dummy/arch.h b/dummy/arch.h index 61a09e00..39c48232 100644 --- a/dummy/arch.h +++ b/dummy/arch.h @@ -134,8 +134,8 @@ struct Arch : BaseCtx std::unordered_set wireGraphicsReload; std::unordered_set pipGraphicsReload; - delay_t getCellDelay(const CellInfo *cell, IdString fromPort, - IdString toPort) const; + bool getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort, + delay_t &delay) const; IdString getPortClock(const CellInfo *cell, IdString port) const; bool isClockPort(const CellInfo *cell, IdString port) const; }; -- cgit v1.2.3