aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.h
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2021-01-28 23:42:15 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit385917059b2d06e3b96140418c966a9099ef1e09 (patch)
treed643d757d569960834ccab81ae6ee4f8e2dddc9c /machxo2/arch.h
parent722d1f254284638515accc8c1d4562807f6452cc (diff)
downloadnextpnr-385917059b2d06e3b96140418c966a9099ef1e09.tar.gz
nextpnr-385917059b2d06e3b96140418c966a9099ef1e09.tar.bz2
nextpnr-385917059b2d06e3b96140418c966a9099ef1e09.zip
machxo2: Fix typos where absolute positions were treated as relative.
Diffstat (limited to 'machxo2/arch.h')
-rw-r--r--machxo2/arch.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/machxo2/arch.h b/machxo2/arch.h
index d87b5dbb..aa4138f2 100644
--- a/machxo2/arch.h
+++ b/machxo2/arch.h
@@ -211,7 +211,7 @@ struct BelPinIterator
{
BelPin ret;
ret.bel.index = ptr->bel_index;
- ret.bel.location = wire_loc + ptr->rel_bel_loc;
+ ret.bel.location = ptr->rel_bel_loc;
ret.pin.index = ptr->port;
return ret;
}
@@ -338,7 +338,7 @@ struct PipIterator
{
PipId ret;
ret.index = cursor->index;
- ret.location = wire_loc + cursor->rel_loc;
+ ret.location = cursor->rel_loc;
return ret;
}
};
@@ -752,7 +752,7 @@ struct Arch : BaseCtx
WireId dst;
dst.index = tileInfo(pip)->pips_data[pip.index].dst_idx;
- dst.location = pip.location + tileInfo(pip)->pips_data[pip.index].dst;
+ dst.location = tileInfo(pip)->pips_data[pip.index].dst;
NPNR_ASSERT(wire_to_net[dst] == nullptr);
// Since NetInfo::wires holds info about uphill pips, bind info about
@@ -771,7 +771,7 @@ struct Arch : BaseCtx
WireId dst;
dst.index = tileInfo(pip)->pips_data[pip.index].dst_idx;
- dst.location = pip.location + tileInfo(pip)->pips_data[pip.index].dst;
+ dst.location = tileInfo(pip)->pips_data[pip.index].dst;
NPNR_ASSERT(wire_to_net[dst] != nullptr);
// If we unbind a pip, then the downstream wire is no longer in use
@@ -837,7 +837,7 @@ struct Arch : BaseCtx
WireId wire;
NPNR_ASSERT(pip != PipId());
wire.index = tileInfo(pip)->pips_data[pip.index].src_idx;
- wire.location = pip.location + tileInfo(pip)->pips_data[pip.index].src;
+ wire.location = tileInfo(pip)->pips_data[pip.index].src;
return wire;
}
@@ -846,7 +846,7 @@ struct Arch : BaseCtx
WireId wire;
NPNR_ASSERT(pip != PipId());
wire.index = tileInfo(pip)->pips_data[pip.index].dst_idx;
- wire.location = pip.location + tileInfo(pip)->pips_data[pip.index].dst;
+ wire.location = tileInfo(pip)->pips_data[pip.index].dst;
return wire;
}