diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-18 13:06:21 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-18 13:06:21 +0200 |
commit | 97520bb72833820e0d4321670ccf5a6edeea9d16 (patch) | |
tree | 2f42982b058c4a0a89de79f51201beddc4a5cdfb /ice40 | |
parent | 428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51 (diff) | |
parent | 5fe29922fd15af87cd260a561e88ac2e5b27203d (diff) | |
download | nextpnr-97520bb72833820e0d4321670ccf5a6edeea9d16.tar.gz nextpnr-97520bb72833820e0d4321670ccf5a6edeea9d16.tar.bz2 nextpnr-97520bb72833820e0d4321670ccf5a6edeea9d16.zip |
Merge branch 'master' of github.com:YosysHQ/nextpnr into archattr
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/bitstream.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc index ee276e49..4ea91011 100644 --- a/ice40/bitstream.cc +++ b/ice40/bitstream.cc @@ -870,10 +870,12 @@ bool read_asc(Context *ctx, std::istream &in) }
if (isUsed) {
NetInfo *net = ctx->wire_to_net[pi.dst];
- WireId wire;
- wire.index = pi.dst;
- ctx->unbindWire(wire);
- ctx->bindPip(pip, net, STRENGTH_WEAK);
+ if (net!=nullptr) {
+ WireId wire;
+ wire.index = pi.dst;
+ ctx->unbindWire(wire);
+ ctx->bindPip(pip, net, STRENGTH_WEAK);
+ }
}
}
for (auto bel : ctx->getBels()) {
|