SHORT-2 Accidental net name collision¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on netlist (NET-2 chains |
Data it needs: graph, part classes.
Looks at. The netlist, resistor chains.
What it catches. A chain of parts that starts and ends on the same net where it should bridge two: the pull-ups of both sides of a translator landing on one rail (VCCA-R-R-VCCA where VCCA-R-R-VCCB was drawn), or two 0 Ω links from one net into the same other net.
Why it matters. It is SHORT-1 one step removed: the collision is not across one part but across a chain, so each part looks fine on its own. On a translator the two sides become one net and the translator is bypassed, the low-voltage device gets the high-voltage bus.
Example. A PCA9306 between a 1.8 V sensor and a 3.3 V MCU, with both sides labelled SDA/SCL because the sheet was copied from a board without translator: SDA1 and SDA2 are one net, the 1.8 V sensor sees 3.3 V highs through the MCU-side pull-up, and its pull-up to 1.8 V fights the 3.3 V one.
How to check. Find chains of passives and switches (NET-2 find_chains) whose two ends are the same net, and pin pairs of the same part that should be on different nets (A/B of a translator, IN/OUT of a switch) but are not.
Fix. Rename one side (SDA_1V8); a translator's two sides never share a name.
References. KiCad multiple_net_names; Altium ERC "Nets with multiple names"; catalogue SHORT-1.
Settings¶
Set them in the project file under [checks."SHORT-2"], or for one run with --set SHORT-2.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
SHORT-2.max_chain |
4 | the longest chain of parts followed from a net back to itself |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only SHORT-2 reports on it.
short-2_name_collision¶
error SHORT-2 #37s U1 (translator): SDA1 and SDA2 are both on /SDA, the part is bypassed
net /SDA, part U1
fix: the two sides never share a name: rename one (`SDA_1V8`)
error SHORT-2 #bed R1, R2 in series lead from VCCA back to VCCA: the chain bridges nothing
net VCCA, part R1, part R2
fix: one end was meant for another net: rename the label on that side