aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-26 20:02:19 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-26 20:02:19 +0200
commit09c0d96105c82d9a1c6b2dfb93e3da912ec910d5 (patch)
tree0ad03a17acb0f0415a2d7cdf68133ae1eb298a93 /ice40
parent67d4720989f3609ee2fc2335d906e08f7f50843a (diff)
downloadnextpnr-09c0d96105c82d9a1c6b2dfb93e3da912ec910d5.tar.gz
nextpnr-09c0d96105c82d9a1c6b2dfb93e3da912ec910d5.tar.bz2
nextpnr-09c0d96105c82d9a1c6b2dfb93e3da912ec910d5.zip
ice40: Fixing packing of CIN constant drivers
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/pack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 6e4eade1..6473fd8f 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -221,7 +221,7 @@ static void pack_carries(Context *ctx)
carry_lc->params[ctx->id("CIN_CONST")] = "1";
carry_lc->params[ctx->id("CIN_SET")] = cin_net == ctx->id("$PACKER_VCC_NET") ? "1" : "0";
carry_lc->ports.at(ctx->id("CIN")).net = nullptr;
- auto cin_users = ctx->nets.at(cin_net)->users;
+ auto &cin_users = ctx->nets.at(cin_net)->users;
cin_users.erase(
std::remove_if(cin_users.begin(), cin_users.end(), [carry_lc, ctx](const PortRef &pr) {
return pr.cell == carry_lc && pr.port == ctx->id("CIN");