Prevent KiCAD from merging nets of two different global Labels

I’m trying to troubleshoot an issue where KiCAD merges two separate global labels into a single net (in the netlist). The schematic is depicted below. I’m using Ver 5.0.

Here’s the relevant snippet of the .net file and relevant schematic. I searched all schematics and couldn’t find where the two labels become connected directly or indirectly.

Thanks for your help.
NETLIST
(net (code 270) (name AFE_OUT_A)
(node (ref U11) (pin 3))
(node (ref U11) (pin 16))
(node (ref U11) (pin 15))
(node (ref U11) (pin 11))
(node (ref U11) (pin 5))
(node (ref U8) (pin 10)) — I expected this to be a separate net e.g., V_TC_IN_A not AFE_OUT_A
(node (ref D5) (pin 3))
(node (ref L3) (pin 2)))

It seems that KiCAD has the two nets connected as listed in the ERC report. But I do not see where in the schematic. I attached the schematic that is being referenced in the ERC report.

ERC report
ErrType(4): Conflict problem between pins. Severity: warning
@ (64.77 mm,114.94 mm): Pin 11 (Unspecified) of component U11 is connected to
@ (64.77 mm,120.02 mm): pin 15 (Unspecified) of component U11 (net 270).
ErrType(4): Conflict problem between pins. Severity: warning
@ (115.57 mm,122.55 mm): Pin 16 (Unspecified) of component U11 is connected to
@ (115.57 mm,104.77 mm): pin 3 (Unspecified) of component U11 (net 270).
ErrType(4): Conflict problem between pins. Severity: warning
@ (115.57 mm,104.77 mm): Pin 3 (Unspecified) of component U11 is connected to
@ (115.57 mm,107.31 mm): pin 5 (Unspecified) of component U11 (net 270).

See NETLIST and ERC report above

Check connections of other labels that are directly connected to V_TC_IN_A and AFE_OUT_A.
For example if SWL_S7 and SW1_D1 are connected somewhere it will result in all of the mentioned nets being merged.

Thanks for the good suggestion.

I did search for all SW1_S* and SW1_D* earlier and there is only two instances of each label in the schematic; one at U11 (top diagram) and the other is where they are being used at U8 (bottom diagram).

I also tried to inspect indirect connections, but couldn’t find yet.

Could this connection be related a bad symbol of U8 or U11? I reviewed them but I can post the text here.

I don’t know how a bad symbol can cause this.
My remaining suggestions are:

  • Upgrade to 5.1. It’s fully compatible with 5.0 and has fewer bugs. I don’t remember if there were any netlist bugs in 5.0 but who knows, you will lose nothing by upgrading.
  • Use highlight net tool and try to spot if net is highlighted where it shouldn’t be
  • Share the schematic here if it’s not confidential

Your netlist likely match the schematic. I can see thatseveral pins are tied together.

You are relying on too many labels. Eliminate the labels tied together on the lower left and replace them with wires.

2 Likes

DAC_OUT_A label is the cause of the short because is connected to both nets.

dacouta

1 Like

Thanks for your reply.

But I’m not sure how DAC_OUT_A is connected to V_TC_IN_A in the figure above (SW1_S1 and SW1_D1 are two different pins of an open switch on U11, a source/S and a destination/D pins).

It seems you have made the schematic too complicated for anyone to understand, including yourself.

As a rule, stick to one net label per net. If you need to explain how pins are connected, that should be obvious from the connections, if not, add a text table to describe how pins are used.

Thanks for the suggestion.

I followed the advice of Qu1ck to use the net highlight tool. Here’s the result (all the relevant nets are highlighted in purple by the tool). This is matching the generated netlist exactly, but I’m still not sure why KiCAD would tie V_TC_IN_A to DAC_OUT_A?

It isn’t, I think that was a bad steer. Not everything you read on the internet is true :wink:

After a while you learn which posters skim the text and are likely to jump to incorrect conclusions. Hey, even I’ve done it :slight_smile:

1 Like

Is it perhaps a spurious warning and the issue is that the pins are of type Unspecified? Some symbols you download come like that. First thing I do is assign them the right type in the symbol editor. Using Unspecified defeats some checks so it’s better to be more precise in the symbol data.

Correct, my apology. I meant “This is matching the generated netlist exactly, but I’m still not sure why KiCAD would tie V_TC_IN_A to AFE_OUT_A?”

Thanks

If you have defined A = B, and B = C, then A = B = C. KiCad says those are all the same net, so I will pick one name to use.

1 Like

Understood.

But V_TC_IN_A should not be the same name as AFE_OUT_A, according to my understanding of the schematic above. But KiCAD netlist is suggesting they are. I wish they are same, because unfortunately we have boards assembled based on this assumption and I need to fix them if necessary.

Sorry, I thought all the labels of the line where connected. Watching more carefully I see there is no wire between SW1_S1 and SW1_D1.

I would start by detaching the labels and see what happens with the “highlight net” tool.

To speed up the process you could upload the project as a zip archive.

By the way if you want to use labels to allow the use of differing knowledge domains (which i assume you want as you have a label connected directly to a label at least once) then i suggest to have every knowledge domain in its own hierarchical sheet. In such a case do not use global labels. See Hierarchical or flat schematic design, what is best for me? (How to deal with multi page schematics?)

You have connected them, so electrically they are the same. I consider that axiomatic. Giving them aliases may help you, but it doesn’t help KiCad.

If you actually want separate nets, then you could use a net-tie.

1 Like

Thanks for the suggestion.

Yes, I’m using hierarchical sheets (U8 and U11 are on different sheets - I just placed them in the same image since I could submit only one image to the forum). I’ve been using hierarchical labels at many other places, but only when there are few of them to avoid cluttering the main sheet.

Are you using more sheets? Then the connection must be into another sheet.

You nave reached basic user status. I don’t know if this permits more. You could do multiple posts.