issue109 write_verilog seg fault

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-10-19 16:30:59 -07:00
parent 900c762ddb
commit 221835137f
1 changed files with 19 additions and 17 deletions

View File

@ -411,6 +411,7 @@ VerilogWriter::writeAssigns(Instance *inst)
while (pin_iter->hasNext()) {
Pin *pin = pin_iter->next();
Term *term = network_->term(pin);
if (term) {
Net *net = network_->net(term);
Port *port = network_->port(pin);
if (port
@ -429,12 +430,13 @@ VerilogWriter::writeAssigns(Instance *inst)
net_vname.c_str());
}
}
}
delete pin_iter;
}
////////////////////////////////////////////////////////////////
// Walk the hierarch counting unconnected nets used to connect to
// Walk the hierarchy counting unconnected nets used to connect to
// bus ports with concatenation.
int
VerilogWriter::findUnconnectedNetCount()