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 /generic/arch.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 'generic/arch.h')
-rw-r--r-- | generic/arch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/arch.h b/generic/arch.h index 09fd8e34..accf2dce 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -77,6 +77,7 @@ struct BelInfo DecalXY decalxy; int x, y, z; bool gb; + bool hidden; }; struct GroupInfo @@ -177,7 +178,7 @@ struct Arch : ArchAPI<ArchRanges> void addWire(IdStringList name, IdString type, int x, int y); void addPip(IdStringList name, IdString type, IdStringList srcWire, IdStringList dstWire, DelayInfo delay, Loc loc); - void addBel(IdStringList name, IdString type, Loc loc, bool gb); + void addBel(IdStringList name, IdString type, Loc loc, bool gb, bool hidden); void addBelInput(IdStringList bel, IdString name, IdStringList wire); void addBelOutput(IdStringList bel, IdString name, IdStringList wire); void addBelInout(IdStringList bel, IdString name, IdStringList wire); @@ -237,6 +238,7 @@ struct Arch : ArchAPI<ArchRanges> CellInfo *getConflictingBelCell(BelId bel) const override; const std::vector<BelId> &getBels() const override; IdString getBelType(BelId bel) const override; + bool getBelHidden(BelId bel) const override; const std::map<IdString, std::string> &getBelAttrs(BelId bel) const override; WireId getBelPinWire(BelId bel, IdString pin) const override; PortType getBelPinType(BelId bel, IdString pin) const override; |