issue109 write_verilog seg fault
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
900c762ddb
commit
221835137f
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue