diff --git a/src/netlist.c b/src/netlist.c index 87cf255d..52fc1976 100644 --- a/src/netlist.c +++ b/src/netlist.c @@ -1427,6 +1427,21 @@ static int name_unlabeled_instances() /* name nets that do not touch ipin opin alias instances */ dbg(2, "name_unlabeled_instances(): naming nets that dont touch labels\n"); + for (i = 0; i < instances; ++i) + { + if(!inst[i].node) continue; + if(skip_instance(i, 0, netlist_lvs_ignore)) continue; + if(inst[i].ptr != -1) { + rects=(inst[i].ptr+ xctx->sym)->rects[PINLAYER]; + for(j = 0; j < rects; ++j) { + if(inst[i].node[j] == NULL) + { + err |= set_unnamed_inst(i, j); + } + } + } + } + for (i = 0; i < instances; ++i) { if(!inst[i].node) continue; @@ -1438,7 +1453,6 @@ static int name_unlabeled_instances() if(inst[i].node[j] == NULL) { all_unconn++; - err |= set_unnamed_inst(i, j); } } if(rects > 0 && all_unconn == rects && for_netlist > 0 && xctx->netlist_count > 0) { @@ -1450,6 +1464,9 @@ static int name_unlabeled_instances() } } } + + + return err; } diff --git a/src/xschem.tcl b/src/xschem.tcl index fee05f7b..11244c90 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -1850,7 +1850,6 @@ proc cellview {{derived_symbols {}}} { } if {$skip} { continue } set sym_sch [rel_sym_path $abs_sch] - set default_sch [add_ext $symbol .sch] set type [xschem getprop symbol $symbol type] set sym_spice_sym_def [xschem getprop symbol $symbol spice_sym_def] if {$type eq {subcircuit}} {