aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/bitstream.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-22 10:59:21 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-22 10:59:21 +0200
commit62b66e02085371c456dee95dc08d2cd41351c91f (patch)
tree0c0abbc804421dbb2ef8f80ec722e1976a4ba0d6 /ice40/bitstream.cc
parentc6e4ad322745b478f0f289f4cc5f3668e05700ac (diff)
downloadnextpnr-62b66e02085371c456dee95dc08d2cd41351c91f.tar.gz
nextpnr-62b66e02085371c456dee95dc08d2cd41351c91f.tar.bz2
nextpnr-62b66e02085371c456dee95dc08d2cd41351c91f.zip
Rename getWireBelPin to getBelPinWire
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/bitstream.cc')
-rw-r--r--ice40/bitstream.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc
index 7fd3f8ac..9f5d1f66 100644
--- a/ice40/bitstream.cc
+++ b/ice40/bitstream.cc
@@ -319,8 +319,8 @@ void write_asc(const Context *ctx, std::ostream &out)
NPNR_ASSERT(iez != -1);
bool input_en = false;
- if ((ctx->wire_to_net[ctx->getWireBelPin(bel, PIN_D_IN_0).index] != IdString()) ||
- (ctx->wire_to_net[ctx->getWireBelPin(bel, PIN_D_IN_1).index] != IdString())) {
+ if ((ctx->wire_to_net[ctx->getBelPinWire(bel, PIN_D_IN_0).index] != IdString()) ||
+ (ctx->wire_to_net[ctx->getBelPinWire(bel, PIN_D_IN_1).index] != IdString())) {
input_en = true;
}
@@ -762,7 +762,7 @@ bool read_asc(Context *ctx, std::istream &in)
if (cell.second->bel != BelId()) {
for (auto &port : cell.second->ports) {
PortPin pin = ctx->portPinFromId(port.first);
- WireId wire = ctx->getWireBelPin(cell.second->bel, pin);
+ WireId wire = ctx->getBelPinWire(cell.second->bel, pin);
if (wire != WireId()) {
IdString name = ctx->getBoundWireNet(wire);
if (name != IdString()) {