diff --git a/machxo2/arch.cc b/machxo2/arch.cc index 3fc4dcd8..9ac4f3ae 100644 --- a/machxo2/arch.cc +++ b/machxo2/arch.cc @@ -207,8 +207,6 @@ BelRange Arch::getBelsByTile(int x, int y) const bool Arch::getBelGlobalBuf(BelId bel) const { return false; } -const std::map &Arch::getBelAttrs(BelId bel) const { return attrs_dummy; } - WireId Arch::getBelPinWire(BelId bel, IdString pin) const { NPNR_ASSERT(bel != BelId()); @@ -302,10 +300,6 @@ WireId Arch::getWireByName(IdString name) const return ret; } -IdString Arch::getWireType(WireId wire) const { return IdString(); } - -const std::map &Arch::getWireAttrs(WireId wire) const { return attrs_dummy; } - uint32_t Arch::getWireChecksum(WireId wire) const { // FIXME @@ -369,8 +363,6 @@ IdString Arch::getPipName(PipId pip) const return id("X" + std::to_string(x) + "/Y" + std::to_string(y) + "/" + src_name + ".->." + dst_name); } -const std::map &Arch::getPipAttrs(PipId pip) const { return attrs_dummy; } - uint32_t Arch::getPipChecksum(PipId wire) const { // FIXME 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 pip_id_dummy; std::vector group_id_dummy; std::vector graphic_element_dummy; - std::map attrs_dummy; // Helpers template const TileTypePOD *tileInfo(Id &id) const @@ -604,7 +603,12 @@ struct Arch : BaseCtx return id; } - const std::map &getBelAttrs(BelId bel) const; + 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; @@ -623,8 +627,14 @@ struct Arch : BaseCtx return id(name.str()); } - IdString getWireType(WireId wire) const; - const std::map &getWireAttrs(WireId wire) const; + IdString getWireType(WireId wire) const { return IdString(); } + + std::vector> getWireAttrs(WireId) const + { + std::vector> 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 &getPipAttrs(PipId pip) const; + + std::vector> getPipAttrs(PipId) const + { + std::vector> ret; + return ret; + } + uint32_t getPipChecksum(PipId pip) const; void bindPip(PipId pip, NetInfo *net, PlaceStrength strength); void unbindPip(PipId pip);