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 /ice40/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 'ice40/arch.h')
-rw-r--r-- | ice40/arch.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ice40/arch.h b/ice40/arch.h index 8fd1af23..b955a478 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -502,6 +502,12 @@ struct Arch : BaseCtx return IdString(chip_info->bel_data[bel.index].type); } + 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; PortType getBelPinType(BelId bel, IdString pin) const; std::vector<IdString> getBelPins(BelId bel) const; @@ -518,6 +524,12 @@ struct Arch : BaseCtx IdString getWireType(WireId wire) const; + 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) @@ -694,6 +706,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; } WireId getPipSrcWire(PipId pip) const |