do not break if there are no nets loaded from sym section

This commit is contained in:
Miodrag Milanovic 2018-08-18 10:28:50 +02:00
parent 8965922219
commit 3c51007026

View File

@ -870,10 +870,12 @@ bool read_asc(Context *ctx, std::istream &in)
} }
if (isUsed) { if (isUsed) {
NetInfo *net = ctx->wire_to_net[pi.dst]; NetInfo *net = ctx->wire_to_net[pi.dst];
WireId wire; if (net!=nullptr) {
wire.index = pi.dst; WireId wire;
ctx->unbindWire(wire); wire.index = pi.dst;
ctx->bindPip(pip, net, STRENGTH_WEAK); ctx->unbindWire(wire);
ctx->bindPip(pip, net, STRENGTH_WEAK);
}
} }
} }
for (auto bel : ctx->getBels()) { for (auto bel : ctx->getBels()) {