aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-14 18:50:15 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-14 18:50:15 +0100
commit22330402018a212efd4ef2e337e34af2e79eb875 (patch)
treec9602093138de0424dfe9ffbe37e645ee4a56c48 /ice40/arch.cc
parent339198b394b7f2cdd3bafb2c8c819c1561813f65 (diff)
downloadnextpnr-22330402018a212efd4ef2e337e34af2e79eb875.tar.gz
nextpnr-22330402018a212efd4ef2e337e34af2e79eb875.tar.bz2
nextpnr-22330402018a212efd4ef2e337e34af2e79eb875.zip
Revert "Remove legacy access to state via Arch"
This reverts commit 18b4b316782035daa259d65d26ea733ca4d16bea.
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc41
1 files changed, 41 insertions, 0 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 4727597b..8f2731c6 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -257,6 +257,47 @@ BelRange Arch::getBelsAtSameTile(BelId bel) const
}
// -----------------------------------------------------------------------
+// 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
{