← Back to team overview

kicad-developers team mailing list archive

Eeschema ERC should detect unmatched local labels

 

@JP and @Wayne,

Would you take a patch for fixing this ERC's not detecting local labels? I know we were reminded not to, but I believe this fix should be in the stable release. See my explanation below.

On 09/01/2015 12:09 AM, jp charras wrote:
Le 01/09/2015 04:59, Joseph Chen a écrit :
On 08/31/2015 05:10 AM, jp charras wrote:
Le 28/08/2015 04:54, Joseph Chen a écrit :
This is a resubmitting of a patch file (attached)  that fixes the issue
of [Bug 1487945].  This time it it more coding style compliant as
suggested in other developer's comments.

The fix passed tests on Ubuntu 15.04, based off KiCAD BZR 6133

--Joe
Committed. Thanks.
Thank you JP!  I am now working on enabling ERC to catch errors of
unmatched LOCAL labels as well.

--Joe

Unmatched LOCAL labels are a frequent case: they can just name a
connection to help routing, create schematic documentation, or can just
act as a comment in schematics+boards (I am widely use them).

Unmatched LOCAL labels are in many cases not an error.
Detecting them can be useful, but this detection have to be
enabled/disabled on option.
In my local working branch, I was able to make this ERC's detecting unmatched local labels work as suggested by JP: Within the ERC pop-up dialog window, there is an added extra check box for detecting unmatched local labels. By default, the check box is "un-checked". When a user clicks to enable it, the ERC is able to report any and all unmatched local labels.

Here is why I think this ERC's detecting unmatched local labels is essential:

1. At work, I am using OrCAD Capture for schematic, and I always use OrCAD's local labels as the netlists for track connections, as do other designers in the team.

2. At home, then, when working on my hobby projects, I am using KiCAD with the same habit and discipline of using the local labels for intra sheet netlists.

3. When these local labels are either misspelled or forgotten at some other ends of the parts, they become unmatched and thus result in single netlist names. 4. When current KiCAD does not detect these unmatched local labels, here is a sure worst scenario: the PCB made with this unmatched local labels will not have the intended ratnets and thus no copper tracks will be laid out. Ultimately it is rendered a non working PCB.

Let me know if you have any questions,

--Joe



Follow ups

References