From 22330402018a212efd4ef2e337e34af2e79eb875 Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Sat, 14 Jul 2018 18:50:15 +0100 Subject: Revert "Remove legacy access to state via Arch" This reverts commit 18b4b316782035daa259d65d26ea733ca4d16bea. --- ice40/arch.cc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'ice40/arch.cc') diff --git a/ice40/arch.cc b/ice40/arch.cc index 4727597b..8f2731c6 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -256,6 +256,47 @@ BelRange Arch::getBelsAtSameTile(BelId bel) const return br; } +// ----------------------------------------------------------------------- +// Shorthands to ArchProxy + +BelId Arch::getBelByName(IdString name) const { return rproxy().getBelByName(name); } + +void Arch::bindWire(WireId wire, IdString net, PlaceStrength strength) { rwproxy().bindWire(wire, net, strength); } + +void Arch::unbindWire(WireId wire) { rwproxy().unbindWire(wire); } + +void Arch::bindBel(BelId bel, IdString cell, PlaceStrength strength) { rwproxy().bindBel(bel, cell, strength); } + +void Arch::unbindBel(BelId bel) { rwproxy().unbindBel(bel); } + +bool Arch::checkBelAvail(BelId bel) const { return rproxy().checkBelAvail(bel); } + +IdString Arch::getBoundBelCell(BelId bel) const { return rproxy().getBoundBelCell(bel); } + +IdString Arch::getConflictingBelCell(BelId bel) const { return rproxy().getConflictingBelCell(bel); } + +WireId Arch::getWireByName(IdString name) const { return rproxy().getWireByName(name); } + +WireId Arch::getWireBelPin(BelId bel, PortPin pin) const { return rproxy().getWireBelPin(bel, pin); } + +bool Arch::checkWireAvail(WireId wire) const { return rproxy().checkWireAvail(wire); } + +IdString Arch::getBoundWireNet(WireId wire) const { return rproxy().getBoundWireNet(wire); } + +IdString Arch::getConflictingWireNet(WireId wire) const { return rproxy().getConflictingWireNet(wire); } + +PipId Arch::getPipByName(IdString name) const { return rproxy().getPipByName(name); } + +void Arch::bindPip(PipId pip, IdString net, PlaceStrength strength) { return rwproxy().bindPip(pip, net, strength); } + +void Arch::unbindPip(PipId pip) { return rwproxy().unbindPip(pip); } + +bool Arch::checkPipAvail(PipId pip) const { return rproxy().checkPipAvail(pip); } + +IdString Arch::getBoundPipNet(PipId pip) const { return rproxy().getBoundPipNet(pip); } + +IdString Arch::getConflictingPipNet(PipId pip) const { return rproxy().getConflictingPipNet(pip); } + // ----------------------------------------------------------------------- IdString Arch::getPipName(PipId pip) const -- cgit v1.2.3