aboutsummaryrefslogtreecommitdiffstats
path: root/dummy
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-11 19:46:03 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-11 19:46:03 +0200
commitf63eec034f6ed133713600a426daaa8845d58c03 (patch)
treea20d9685fb8fa9e0783c66e84197f5709c718be2 /dummy
parent17fae4c9e1ab99f43a27cc3154614ddf867c8db9 (diff)
downloadnextpnr-f63eec034f6ed133713600a426daaa8845d58c03.tar.gz
nextpnr-f63eec034f6ed133713600a426daaa8845d58c03.tar.bz2
nextpnr-f63eec034f6ed133713600a426daaa8845d58c03.zip
Add conflicting=false argument to bind getters
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'dummy')
-rw-r--r--dummy/chip.cc6
-rw-r--r--dummy/chip.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/dummy/chip.cc b/dummy/chip.cc
index 4184bc67..2ca02964 100644
--- a/dummy/chip.cc
+++ b/dummy/chip.cc
@@ -34,7 +34,7 @@ void Chip::unbindBel(BelId bel) {}
bool Chip::checkBelAvail(BelId bel) const { return false; }
-IdString Chip::getBelCell(BelId bel) const { return IdString(); }
+IdString Chip::getBelCell(BelId bel, bool conflicting) const { return IdString(); }
const vector<BelId> &Chip::getBels() const
{
@@ -72,7 +72,7 @@ void Chip::unbindWire(WireId wire) {}
bool Chip::checkWireAvail(WireId wire) const { return false; }
-IdString Chip::getWireNet(WireId wire) const { return IdString(); }
+IdString Chip::getWireNet(WireId wire, bool conflicting) const { return IdString(); }
const vector<WireId> &Chip::getWires() const
{
@@ -92,7 +92,7 @@ void Chip::unbindPip(PipId pip) {}
bool Chip::checkPipAvail(PipId pip) const { return false; }
-IdString Chip::getPipNet(PipId pip) const { return IdString(); }
+IdString Chip::getPipNet(PipId pip, bool conflicting) const { return IdString(); }
const vector<PipId> &Chip::getPips() const
{
diff --git a/dummy/chip.h b/dummy/chip.h
index da9ee7af..60db776e 100644
--- a/dummy/chip.h
+++ b/dummy/chip.h
@@ -74,7 +74,7 @@ struct Chip
void bindBel(BelId bel, IdString cell);
void unbindBel(BelId bel);
bool checkBelAvail(BelId bel) const;
- IdString getBelCell(BelId bel) const;
+ IdString getBelCell(BelId bel, bool conflicting=false) const;
const vector<BelId> &getBels() const;
const vector<BelId> &getBelsByType(BelType type) const;
BelType getBelType(BelId bel) const;
@@ -87,7 +87,7 @@ struct Chip
void bindWire(WireId wire, IdString net);
void unbindWire(WireId wire);
bool checkWireAvail(WireId wire) const;
- IdString getWireNet(WireId wire) const;
+ IdString getWireNet(WireId wire, bool conflicting=false) const;
const vector<WireId> &getWires() const;
PipId getPipByName(IdString name) const;
@@ -95,7 +95,7 @@ struct Chip
void bindPip(PipId pip, IdString net);
void unbindPip(PipId pip);
bool checkPipAvail(PipId pip) const;
- IdString getPipNet(PipId pip) const;
+ IdString getPipNet(PipId pip, bool conflicting=false) const;
const vector<PipId> &getPips() const;
WireId getPipSrcWire(PipId pip) const;
WireId getPipDstWire(PipId pip) const;
@@ -107,6 +107,7 @@ struct Chip
void getBelPosition(BelId bel, float &x, float &y) const;
void getWirePosition(WireId wire, float &x, float &y) const;
void getPipPosition(PipId pip, float &x, float &y) const;
+
vector<GraphicElement> getBelGraphics(BelId bel) const;
vector<GraphicElement> getWireGraphics(WireId wire) const;
vector<GraphicElement> getPipGraphics(PipId pip) const;