From f63eec034f6ed133713600a426daaa8845d58c03 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 11 Jun 2018 19:46:03 +0200 Subject: Add conflicting=false argument to bind getters Signed-off-by: Clifford Wolf --- dummy/chip.cc | 6 +++--- dummy/chip.h | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'dummy') 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 &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 &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 &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 &getBels() const; const vector &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 &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 &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 getBelGraphics(BelId bel) const; vector getWireGraphics(WireId wire) const; vector getPipGraphics(PipId pip) const; -- cgit v1.2.3