diff options
author | gatecat <gatecat@ds0.me> | 2021-02-12 09:53:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 09:53:50 +0000 |
commit | 5dfbe703ae26e6af2a1a687c06f001b6788d6fc8 (patch) | |
tree | 85a04ec931762d61c0ef668bc404d00bd4c699bc /common/nextpnr.h | |
parent | e376f950fe683b9a744437301a9e09eae1895efa (diff) | |
parent | 99e397000c2bc8a80354c31ef259c6715dd142ff (diff) | |
download | nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.tar.gz nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.tar.bz2 nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.zip |
Merge pull request #581 from litghost/add_isbelhidden
Add getBelHidden and add some missing "override" statements.
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index c43b9dc4..ddfcc794 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -1089,6 +1089,7 @@ template <typename R> struct ArchAPI : BaseCtx virtual CellInfo *getBoundBelCell(BelId bel) const = 0; virtual CellInfo *getConflictingBelCell(BelId bel) const = 0; virtual IdString getBelType(BelId bel) const = 0; + virtual bool getBelHidden(BelId bel) const = 0; virtual typename R::BelAttrsRangeT getBelAttrs(BelId bel) const = 0; virtual WireId getBelPinWire(BelId bel, IdString pin) const = 0; virtual PortType getBelPinType(BelId bel, IdString pin) const = 0; @@ -1201,7 +1202,7 @@ template <typename R> struct BaseArch : ArchAPI<R> // Basic config virtual IdString archId() const override { return this->id(STRINGIFY(ARCHNAME)); } - virtual IdString archArgsToId(typename R::ArchArgsT args) const { return IdString(); } + virtual IdString archArgsToId(typename R::ArchArgsT args) const override { return IdString(); } virtual int getTilePipDimZ(int x, int y) const override { return 1; } virtual char getNameDelimiter() const override { return ' '; } @@ -1228,6 +1229,8 @@ template <typename R> struct BaseArch : ArchAPI<R> this->refreshUiBel(bel); } + virtual bool getBelHidden(BelId bel) const override { return false; } + virtual bool getBelGlobalBuf(BelId bel) const override { return false; } virtual bool checkBelAvail(BelId bel) const override { return getBoundBelCell(bel) == nullptr; }; virtual CellInfo *getBoundBelCell(BelId bel) const override @@ -1290,7 +1293,7 @@ template <typename R> struct BaseArch : ArchAPI<R> virtual NetInfo *getConflictingWireNet(WireId wire) const override { return getBoundWireNet(wire); } // Pip methods - virtual IdString getPipType(PipId pip) const { return IdString(); } + virtual IdString getPipType(PipId pip) const override { return IdString(); } virtual typename R::PipAttrsRangeT getPipAttrs(PipId) const override { return empty_if_possible<typename R::PipAttrsRangeT>(); |