mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Fix handling of non-user-declared Verific netbus
This commit is contained in:
parent
c1cfca8f54
commit
acd6cfaf67
|
@ -845,10 +845,11 @@ struct VerificImporter
|
||||||
|
|
||||||
if (found_new_net)
|
if (found_new_net)
|
||||||
{
|
{
|
||||||
if (verbose)
|
RTLIL::IdString wire_name = module->uniquify(mode_names || netbus->IsUserDeclared() ? RTLIL::escape_id(net->Name()) : NEW_ID);
|
||||||
log(" importing netbus %s.\n", netbus->Name());
|
|
||||||
|
if (verbose)
|
||||||
|
log(" importing netbus %s as %s.\n", netbus->Name(), log_id(wire_name));
|
||||||
|
|
||||||
RTLIL::IdString wire_name = module->uniquify(RTLIL::escape_id(netbus->Name()));
|
|
||||||
RTLIL::Wire *wire = module->addWire(wire_name, netbus->Size());
|
RTLIL::Wire *wire = module->addWire(wire_name, netbus->Size());
|
||||||
wire->start_offset = min(netbus->LeftIndex(), netbus->RightIndex());
|
wire->start_offset = min(netbus->LeftIndex(), netbus->RightIndex());
|
||||||
import_attributes(wire->attributes, netbus);
|
import_attributes(wire->attributes, netbus);
|
||||||
|
|
Loading…
Reference in a new issue