SHORT-1 Net shunting a known part¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on netlist |
Data it needs: graph, part classes.
Looks at. The netlist.
What it catches. A two-terminal part (resistor, capacitor, inductor, ferrite, diode) or two terminals of a transistor that sit on the same net, so the part does nothing.
Why it matters. Nobody places a resistor to short it out. Both ends on one net nearly always means two labels that collided: a port and a net label with the same name, a label copied with its neighbour's text, or two sheets that both used a generic name like OUT. The part is harmless; what the collision joined elsewhere usually is not.
Example. A current-sense shunt R12 between VBAT and VBAT_SENSE, where an ADC divider on another sheet also labelled its top VBAT: fine so far. A later edit renames the shunt's load side VBAT too, and R12 now has both pads on VBAT: the sense amplifier reads zero forever, and the load is joined to the battery through nothing.
How to check. For every part, compare the nets of its terminals; two terminals of a passive, or gate-source, drain-source, base-emitter on one net, is a finding (FET G-S on one net can be deliberate in a diode-connected stage, which the waiver covers).
Fix. Find the label that merged the two nets (WIRE-2, WIRE-12) and rename it.
References. KiCad "More than one name given to this bus or net" (multiple_net_names); Altium ERC "Nets with multiple names"; catalogue WIRE-2, WIRE-12.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only SHORT-1 reports on it.
short-1_shunted_parts¶
error SHORT-1 #ph5 R12 (resistor): both terminals on /VBAT, the part is shorted out
net /VBAT, part R12
class = resistor (derived class from the library symbol)
fix: find the label that merged the two nets (WIRE-2, WIRE-12) and rename it
error SHORT-1 #b50 Q2 (MOSFET): D and S on GND, the part is shorted out
net GND, part Q2
class = MOSFET (derived class from the library symbol)
fix: find the label that merged the two nets (WIRE-2, WIRE-12) and rename it
error SHORT-1 #ncb Q1 (MOSFET): G and S on Net-(Q1-G), the part is shorted out
net Net-(Q1-G), part Q1
class = MOSFET (derived class from the library symbol)
fix: find the label that merged the two nets (WIRE-2, WIRE-12) and rename it
SHORT-1 also fires on the test schematics of other checks: draw-41_pin_lead.