aboutsummaryrefslogtreecommitdiffstats
path: root/dummy/arch.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-23 15:16:24 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-23 15:16:24 +0200
commit746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205 (patch)
tree0e39eddba232e0abae90dfe30ba4643ca5f0b7d5 /dummy/arch.h
parentd72fe0c230f79248a56e47c2f31f14b15c7f13fe (diff)
downloadnextpnr-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.h')
-rw-r--r--dummy/arch.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/dummy/arch.h b/dummy/arch.h
index 5bdf633e..2a778689 100644
--- a/dummy/arch.h
+++ b/dummy/arch.h
@@ -88,10 +88,11 @@ struct Arch : BaseCtx
BelId getBelByName(IdString name) const;
IdString getBelName(BelId bel) const;
uint32_t getBelChecksum(BelId bel) const;
- void bindBel(BelId bel, IdString cell);
+ void bindBel(BelId bel, IdString cell, PlaceStrength strength);
void unbindBel(BelId bel);
bool checkBelAvail(BelId bel) const;
- IdString getBelCell(BelId bel, bool conflicting = false) const;
+ IdString getBoundBelCell(BelId bel) const;
+ IdString getConflictingBelCell(BelId bel) const;
const std::vector<BelId> &getBels() const;
const std::vector<BelId> &getBelsByType(BelType type) const;
BelType getBelType(BelId bel) const;
@@ -102,19 +103,21 @@ struct Arch : BaseCtx
WireId getWireByName(IdString name) const;
IdString getWireName(WireId wire) const;
uint32_t getWireChecksum(WireId wire) const;
- void bindWire(WireId wire, IdString net);
+ void bindWire(WireId wire, IdString net, PlaceStrength strength);
void unbindWire(WireId wire);
bool checkWireAvail(WireId wire) const;
- IdString getWireNet(WireId wire, bool conflicting = false) const;
+ IdString getBoundWireNet(WireId wire) const;
+ IdString getConflictingWireNet(WireId wire) const;
const std::vector<WireId> &getWires() const;
PipId getPipByName(IdString name) const;
IdString getPipName(PipId pip) const;
uint32_t getPipChecksum(PipId pip) const;
- void bindPip(PipId pip, IdString net);
+ void bindPip(PipId pip, IdString net, PlaceStrength strength);
void unbindPip(PipId pip);
bool checkPipAvail(PipId pip) const;
- IdString getPipNet(PipId pip, bool conflicting = false) const;
+ IdString getBoundPipNet(PipId pip) const;
+ IdString getConflictingPipNet(PipId pip) const;
const std::vector<PipId> &getPips() const;
WireId getPipSrcWire(PipId pip) const;
WireId getPipDstWire(PipId pip) const;