netlist generated incorrectly for shared pins (cf: multi-gate components)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Expired
|
Medium
|
Jon Evans |
Bug Description
The problem is in multi-gate components, which has some pins common to two or more gates. It can be two buffers with common Enable pin, four diodes with common anode pin or (in my case) MCU with all GPIOs shown in one gate while same pins acting as USART I/Os shown in another gate.
Two years ago all wires connected to those common pins in different gates had the same net name e.g. was connected together as it takes place on PCB - all routes to same pin had same net name. I suppose this behavior was correct one.
Today's kicad netlist generator assigns separate net to every pin occurrence in gates. And at netlist loading phase only first pin occurrence is taken into account while all other connections to same pin in other gates _silently_ ignored, e.g. pin connection depends on gate numbering in package or even gates location on schematics sheet or possibly even it's edit order in time.
I'll try to show it using four Zenner diodes in sot23-5 package (ESDA6v1-SC5) has common anode on pin 2 and cathodes on pins 1,3,4,5.
Attached file bug-example1.sch where pin 2 of gate A is connected to GND power symbol while all othes pins left unconnected produces netlist, which after loading into bug-example.
Attached file bug-example2.sch where pin 2 of gate B is connected to GND power symbol while all othes pins left unconnected produces netlist, which after loading into bug-example.
description: | updated |
summary: |
- netlist generated incorrectly + netlist generated incorrectly for shared pins (cf: multi-gate + components) |
Changed in kicad: | |
assignee: | nobody → Jon Evans (craftyjon) |
Changed in kicad: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
Sorry, missed version info:
Application: eeschema compatible with 2.8) GRAPHICS_ CONTEXT= OFF
USE_ WX_OVERLAY= OFF
KICAD_ SCRIPTING= OFF
KICAD_ SCRIPTING_ MODULES= OFF
KICAD_ SCRIPTING_ WXPYTHON= OFF
KICAD_ SCRIPTING_ ACTION_ MENU=OFF
BUILD_ GITHUB_ PLUGIN= OFF
KICAD_ USE_OCE= OFF
Version: (2017-07-09 revision d7a4fb7)-master, release build
Libraries: wxWidgets 3.0.2
Platform: Linux 4.4.0-83-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.58.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
Settings: USE_WX_