diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-23 15:16:24 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-23 15:16:24 +0200 |
commit | 746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205 (patch) | |
tree | 0e39eddba232e0abae90dfe30ba4643ca5f0b7d5 /dummy/arch.cc | |
parent | d72fe0c230f79248a56e47c2f31f14b15c7f13fe (diff) | |
download | nextpnr-746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205.tar.gz nextpnr-746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205.tar.bz2 nextpnr-746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205.zip |
Refactoring bind/unbind API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'dummy/arch.cc')
-rw-r--r-- | dummy/arch.cc | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/dummy/arch.cc b/dummy/arch.cc index 64c0ca1e..4adff2ca 100644 --- a/dummy/arch.cc +++ b/dummy/arch.cc @@ -36,16 +36,15 @@ IdString Arch::getBelName(BelId bel) const { return IdString(); } uint32_t Arch::getBelChecksum(BelId bel) const { return 0; } -void Arch::bindBel(BelId bel, IdString cell) {} +void Arch::bindBel(BelId bel, IdString cell, PlaceStrength strength) {} void Arch::unbindBel(BelId bel) {} bool Arch::checkBelAvail(BelId bel) const { return false; } -IdString Arch::getBelCell(BelId bel, bool conflicting) const -{ - return IdString(); -} +IdString Arch::getBoundBelCell(BelId bel) const { return IdString(); } + +IdString Arch::getConflictingBelCell(BelId bel) const { return IdString(); } const std::vector<BelId> &Arch::getBels() const { @@ -79,16 +78,15 @@ IdString Arch::getWireName(WireId wire) const { return IdString(); } uint32_t Arch::getWireChecksum(WireId wire) const { return 0; } -void Arch::bindWire(WireId wire, IdString net) {} +void Arch::bindWire(WireId wire, IdString net, PlaceStrength strength) {} void Arch::unbindWire(WireId wire) {} bool Arch::checkWireAvail(WireId wire) const { return false; } -IdString Arch::getWireNet(WireId wire, bool conflicting) const -{ - return IdString(); -} +IdString Arch::getBoundWireNet(WireId wire) const { return IdString(); } + +IdString Arch::getConflictingWireNet(WireId wire) const { return IdString(); } const std::vector<WireId> &Arch::getWires() const { @@ -104,16 +102,15 @@ IdString Arch::getPipName(PipId pip) const { return IdString(); } uint32_t Arch::getPipChecksum(PipId wire) const { return 0; } -void Arch::bindPip(PipId pip, IdString net) {} +void Arch::bindPip(PipId pip, IdString net, PlaceStrength strength) {} void Arch::unbindPip(PipId pip) {} bool Arch::checkPipAvail(PipId pip) const { return false; } -IdString Arch::getPipNet(PipId pip, bool conflicting) const -{ - return IdString(); -} +IdString Arch::getBoundPipNet(PipId pip) const { return IdString(); } + +IdString Arch::getConflictingPipNet(PipId pip) const { return IdString(); } const std::vector<PipId> &Arch::getPips() const { |