3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

Fix crash in verific frontend

This commit is contained in:
Miodrag Milanovic 2020-06-26 20:11:01 +02:00
parent 3840cfc016
commit b822beb1b2

View file

@ -1111,7 +1111,8 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se
wire->start_offset = min(netbus->LeftIndex(), netbus->RightIndex()); wire->start_offset = min(netbus->LeftIndex(), netbus->RightIndex());
MapIter mibus; MapIter mibus;
FOREACH_NET_OF_NETBUS(netbus, mibus, net) { FOREACH_NET_OF_NETBUS(netbus, mibus, net) {
import_attributes(wire->attributes, net, nl); if (net)
import_attributes(wire->attributes, net, nl);
break; break;
} }