verilog dup name

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-03-29 16:16:46 -07:00
parent 01f1fc7642
commit b6cdea9566
2 changed files with 2 additions and 2 deletions

View File

@ -639,7 +639,7 @@ ConcreteParasiticNetwork::ensureParasiticNode(const Pin *pin,
if (term)
net = network->net(term);
}
else
else if (net)
net = network->highestNetAbove(net);
node = new ConcreteParasiticNode(pin, net != net_);
pin_nodes_[pin] = node;

View File

@ -927,7 +927,7 @@ VerilogModule::checkInstanceName(VerilogInst *inst,
{
const char *inst_name = inst->instanceName();
if (inst_names.findKey(inst_name)) {
int i = 0;
int i = 1;
const char *replacement_name = nullptr;
do {
if (replacement_name)