Comment 4 for bug 1704083

Revision history for this message
Sergey A. Borshch (sb-sf) wrote : Re: netlist generated incorrectly

Hi Maciej.

It was just an example, as simple as possible, to show the bug. In my real project MCU has many functions on almost any pin and I grouped them into gates (example: gate A is all pins as GPIO, gate C is all pins that USART1 can be connected to, gate H is all pins of SPI1 etc.). One pin used in schematics as USART1 TX almost always remains unconnected in GPIO and other gates. Netlist generator automatically assigns net to that unconnected pin in GPIO gate and assigns other (automatic or named) net to (the same) connected pin. And this second, desired net gets discarded at netlist loading because non-existing automatic net assigned to not connected pin instance get precedence over existing net. I think all unnamed nets connected to the same pin instance should get the same automatic net name or name of named net if at least one net connected to pin is named (as it was in kicad two or more years ago), or rise error message at ERC and netlist generation if instances of same pin are connected to more than one named net.

 By the way PCAD automatically adds global label to common pin if pin is already connected in other gate.