Skip to content

NAME-11 Negative rail named without its sign

Severity Status Implementation
suggestion runs in better_erc easy, depends on NET-5

Data it needs: graph, rails.

Looks at. Net names, the power structure (NET-5).

What it catches. A negative rail named without a minus (5V_NEG, VEE, V5N), or with a sign in a form the name parser does not read.

Why it matters. A name without its sign is read by a rule, not stated: better_erc reads -5V0 as −5 V, and 5V0_NEG as −5 V too, but only because of the NEG marker (the voltage fact says so in its note). A marker it does not know (V5N, 5V_M) leaves a +5 V rail where −5 V sits, and a check that compares pin ratings sees the wrong sign. People misread it the same way when they look for "the 5 V rail" with a meter.

Example. An op-amp supply +5V0 and 5V0_NEG: a parser that finds 5V0 in both gives the negative supply +5 V and the op-amp's V− pin looks shorted to V+ in every voltage check.

How to check. Rails whose name contains NEG, VEE, VSS_A style markers or which a negative regulator (by part class) feeds, and whose parsed voltage is positive or missing.

Fix. Name negative rails with a leading minus (-5V0, -12V) and make sure the parser reads it.

References. better_erc erc_analysis/src/power.rs (read_name: the sign from a NEG, VEE, VNEG or V- marker, NetName::sign_from_marker; VEE is a negative rail, not a ground); catalogue RAIL-3.

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only NAME-11 reports on it.

name-11_negative_rail_names

The test schematic name-11_negative_rail_names The test schematic name-11_negative_rail_names

  suggestion NAME-11 #5e5   5V0_NEG is read as -5 V only by its negative marker: write the sign (`-5V`)
                            net 5V0_NEG, pin U1.4
                            voltage = -5 (derived voltage from the net name, negative by its NEG marker)
                            fix: name negative rails with a leading minus (`-5V0`, `-12V`)
  suggestion NAME-11 #10k   VAUX carries negative supply pins U2.4 (V-) but reads without a sign
                            net VAUX, pin U2.4
                            fix: name negative rails with a leading minus (`-5V0`, `-12V`)