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,12 +870,14 @@ 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];
if (net!=nullptr) {
WireId wire; WireId wire;
wire.index = pi.dst; wire.index = pi.dst;
ctx->unbindWire(wire); ctx->unbindWire(wire);
ctx->bindPip(pip, net, STRENGTH_WEAK); ctx->bindPip(pip, net, STRENGTH_WEAK);
} }
} }
}
for (auto bel : ctx->getBels()) { for (auto bel : ctx->getBels()) {
if (ctx->getBelType(bel) == id_ICESTORM_LC) { if (ctx->getBelType(bel) == id_ICESTORM_LC) {
const TileInfoPOD &ti = bi.tiles_nonrouting[TILE_LOGIC]; const TileInfoPOD &ti = bi.tiles_nonrouting[TILE_LOGIC];