diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-14 17:16:14 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-14 17:16:14 +0200 |
commit | 428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51 (patch) | |
tree | ae40077b034cb288b538d98e99da857c2be02dc7 /ecp5/arch.h | |
parent | 2e02f2d6166c75b1fcec73d268e97e407071a372 (diff) | |
download | nextpnr-428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51.tar.gz nextpnr-428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51.tar.bz2 nextpnr-428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51.zip |
Add Arch attrs API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r-- | ecp5/arch.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h index 36792625..f5336e55 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -522,6 +522,12 @@ struct Arch : BaseCtx return id; } + std::vector<std::pair<IdString, std::string>> getBelAttrs(BelId) const + { + std::vector<std::pair<IdString, std::string>> ret; + return ret; + } + WireId getBelPinWire(BelId bel, IdString pin) const; BelPinRange getWireBelPins(WireId wire) const @@ -553,6 +559,12 @@ struct Arch : BaseCtx IdString getWireType(WireId wire) const { return IdString(); } + std::vector<std::pair<IdString, std::string>> getWireAttrs(WireId) const + { + std::vector<std::pair<IdString, std::string>> ret; + return ret; + } + uint32_t getWireChecksum(WireId wire) const { return wire.index; } void bindWire(WireId wire, NetInfo *net, PlaceStrength strength) @@ -633,6 +645,12 @@ struct Arch : BaseCtx IdString getPipType(PipId pip) const { return IdString(); } + std::vector<std::pair<IdString, std::string>> getPipAttrs(PipId) const + { + std::vector<std::pair<IdString, std::string>> ret; + return ret; + } + uint32_t getPipChecksum(PipId pip) const { return pip.index; } void bindPip(PipId pip, NetInfo *net, PlaceStrength strength) |