aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.h
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2021-01-27 02:03:50 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit19a9554bdadf19eec2fb83e6a04ecabfeafc1ed7 (patch)
treebf42a7ff235eba2ab6a7f3ee31840e81a333375e /machxo2/arch.h
parent9a9054188c52d76670dace9777981ffd28de5599 (diff)
downloadnextpnr-19a9554bdadf19eec2fb83e6a04ecabfeafc1ed7.tar.gz
nextpnr-19a9554bdadf19eec2fb83e6a04ecabfeafc1ed7.tar.bz2
nextpnr-19a9554bdadf19eec2fb83e6a04ecabfeafc1ed7.zip
machxo2: Add stub getAttrs API functions.
Diffstat (limited to 'machxo2/arch.h')
-rw-r--r--machxo2/arch.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/machxo2/arch.h b/machxo2/arch.h
index d8442ec8..e645f225 100644
--- a/machxo2/arch.h
+++ b/machxo2/arch.h
@@ -475,7 +475,6 @@ struct Arch : BaseCtx
std::vector<PipId> pip_id_dummy;
std::vector<GroupId> group_id_dummy;
std::vector<GraphicElement> graphic_element_dummy;
- std::map<IdString, std::string> attrs_dummy;
// Helpers
template <typename Id> const TileTypePOD *tileInfo(Id &id) const
@@ -604,7 +603,12 @@ struct Arch : BaseCtx
return id;
}
- const std::map<IdString, std::string> &getBelAttrs(BelId bel) const;
+ 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;
@@ -623,8 +627,14 @@ struct Arch : BaseCtx
return id(name.str());
}
- IdString getWireType(WireId wire) const;
- const std::map<IdString, std::string> &getWireAttrs(WireId wire) const;
+ 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;
void bindWire(WireId wire, NetInfo *net, PlaceStrength strength);
void unbindWire(WireId wire);
@@ -641,7 +651,13 @@ struct Arch : BaseCtx
IdString getPipName(PipId pip) const;
IdString getPipType(PipId pip) const { return IdString(); }
- const std::map<IdString, std::string> &getPipAttrs(PipId pip) const;
+
+ 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;
void bindPip(PipId pip, NetInfo *net, PlaceStrength strength);
void unbindPip(PipId pip);