From 428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 14 Aug 2018 17:16:14 +0200 Subject: Add Arch attrs API Signed-off-by: Clifford Wolf --- ice40/arch.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ice40') 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> getBelAttrs(BelId) const + { + std::vector> ret; + return ret; + } + WireId getBelPinWire(BelId bel, IdString pin) const; PortType getBelPinType(BelId bel, IdString pin) const; std::vector getBelPins(BelId bel) const; @@ -518,6 +524,12 @@ struct Arch : BaseCtx IdString getWireType(WireId wire) const; + std::vector> getWireAttrs(WireId) const + { + std::vector> 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> getPipAttrs(PipId) const + { + std::vector> ret; + return ret; + } + uint32_t getPipChecksum(PipId pip) const { return pip.index; } WireId getPipSrcWire(PipId pip) const -- cgit v1.2.3