diff options
author | David Shah <davey1576@gmail.com> | 2018-08-08 14:37:59 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-08-08 14:37:59 +0200 |
commit | bf42e525cb7ab6ae071b16dfeca55194878be69c (patch) | |
tree | c9282e371fc57a71550e1dcca0ae9e38724d5bf4 /generic | |
parent | a0994d515454a696c98602980b298ee61aa03f4e (diff) | |
download | nextpnr-bf42e525cb7ab6ae071b16dfeca55194878be69c.tar.gz nextpnr-bf42e525cb7ab6ae071b16dfeca55194878be69c.tar.bz2 nextpnr-bf42e525cb7ab6ae071b16dfeca55194878be69c.zip |
Arch API: New specification for timing port classes
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'generic')
-rw-r--r-- | generic/arch.cc | 8 | ||||
-rw-r--r-- | generic/arch.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/generic/arch.cc b/generic/arch.cc index 0fa93da8..25e4d08c 100644 --- a/generic/arch.cc +++ b/generic/arch.cc @@ -435,9 +435,11 @@ bool Arch::getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort return false; } -IdString Arch::getPortClock(const CellInfo *cell, IdString port) const { return IdString(); } - -bool Arch::isClockPort(const CellInfo *cell, IdString port) const { return false; } +// Get the port class, also setting clockPort if applicable +TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, IdString &clockPort) const +{ + return TMG_IGNORE; +} bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const { return true; } bool Arch::isBelLocationValid(BelId bel) const { return true; } diff --git a/generic/arch.h b/generic/arch.h index e7010885..fb4f3660 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -213,8 +213,8 @@ struct Arch : BaseCtx DecalXY getGroupDecal(GroupId group) const; bool getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort, DelayInfo &delay) const; - IdString getPortClock(const CellInfo *cell, IdString port) const; - bool isClockPort(const CellInfo *cell, IdString port) const; + // Get the port class, also setting clockPort if applicable + TimingPortClass getPortTimingClass(const CellInfo *cell, IdString port, IdString &clockPort) const; // Return true if a cell is an IO bool isIOCell(const CellInfo *cell) const; |