diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-08 19:35:13 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-08 19:35:13 +0200 |
commit | f6189e4677c7bdaeaa5b9b796a67d750e6c7d49d (patch) | |
tree | a13673a636ddbea3b5fd5585e3bb109b56b69435 /generic/arch.h | |
parent | a3ae3f97913c291dbe36a49b1a20388156943abc (diff) | |
parent | cd4e761bb799ca99f02d3aa177961af28a93f2d8 (diff) | |
download | nextpnr-f6189e4677c7bdaeaa5b9b796a67d750e6c7d49d.tar.gz nextpnr-f6189e4677c7bdaeaa5b9b796a67d750e6c7d49d.tar.bz2 nextpnr-f6189e4677c7bdaeaa5b9b796a67d750e6c7d49d.zip |
Merge branch 'master' of github.com:YosysHQ/nextpnr into constids
Diffstat (limited to 'generic/arch.h')
-rw-r--r-- | generic/arch.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/arch.h b/generic/arch.h index b38d5916..ee7d0403 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -121,11 +121,13 @@ struct Arch : BaseCtx // --------------------------------------------------------------- // Common Arch API. Every arch must provide the following methods. + ArchArgs args; Arch(ArchArgs args); std::string getChipName() const { return chipName; } IdString archId() const { return id("generic"); } + ArchArgs archArgs() const { return args; } IdString archArgsToId(ArchArgs args) const { return id("none"); } int getGridDimX() const { return gridDimX; } @@ -207,8 +209,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; bool isValidBelForCell(CellInfo *cell, BelId bel) const; bool isBelLocationValid(BelId bel) const; |