diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-11 19:46:03 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-11 19:46:03 +0200 |
commit | f63eec034f6ed133713600a426daaa8845d58c03 (patch) | |
tree | a20d9685fb8fa9e0783c66e84197f5709c718be2 /ice40 | |
parent | 17fae4c9e1ab99f43a27cc3154614ddf867c8db9 (diff) | |
download | nextpnr-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 'ice40')
-rw-r--r-- | ice40/chip.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ice40/chip.h b/ice40/chip.h index 252cf303..b7492d2f 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -449,7 +449,7 @@ struct Chip return bel_to_cell[bel.index] == IdString(); } - IdString getBelCell(BelId bel) const + IdString getBelCell(BelId bel, bool conflicting=false) const { assert(bel != BelId()); return bel_to_cell[bel.index]; @@ -539,7 +539,7 @@ struct Chip return wire_to_net[wire.index] == IdString(); } - IdString getWireNet(WireId wire) const + IdString getWireNet(WireId wire, bool conflicting=false) const { assert(wire != WireId()); return wire_to_net[wire.index]; @@ -596,7 +596,7 @@ struct Chip return !switches_locked[chip_info.pip_data[pip.index].switch_index]; } - IdString getPipNet(PipId pip) const + IdString getPipNet(PipId pip, bool conflicting=false) const { assert(pip != PipId()); return pip_to_net[pip.index]; @@ -668,6 +668,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; |