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 --- ecp5/arch.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ecp5/arch.h') 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> getBelAttrs(BelId) const + { + std::vector> 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> 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) @@ -633,6 +645,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; } void bindPip(PipId pip, NetInfo *net, PlaceStrength strength) -- cgit v1.2.3