NAME-1 Inconsistent naming of inverted signals: suggest one notation¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist |
Data it needs: graph.
Looks at. Net names.
What it catches. A schematic that marks active-low signals in several ways at once: RST_N, nIRQ, ~{CS}, OE#, RESETn.
Why it matters. A reader has to know every convention to see the polarity, and a tool must recognise all of them; a mix also hides the nets that carry no marker at all (NAME-10). Picking one is cheap and makes polarity mistakes (LOGIC-8) visible at a glance.
Example. ~HUB_RESET, SPI_CS_N and nPWR_FAULT on one board: three spellings, and a search for active-low nets finds a third of them.
How to check. Classify net names by marker style (overbar markup, _N/_n suffix, n prefix, # suffix); more than one style in a project is a finding, listed by style.
Fix. One style for the project; KiCad's overbar markup ~{...} renders well on the sheet, _N survives every export and tool.
References. Wikipedia, Logic level (active-low notations); KiCad Eeschema "Text markup".
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only NAME-1 reports on it.
name-1_inverted_signal_styles¶
suggestion NAME-1 #hf7 active-low signals are marked in 3 styles: ~{X} (1: /~{HUB_RESET}); X_N (2: /FLASH_WP_N, /SPI_CS_N); nX (1: /nPWR_FAULT)
net /nPWR_FAULT, net /~{HUB_RESET}
fix: one style for the project, X_N as most nets use it (`~{...}` renders as an overbar, `_N` survives every tool)
NAME-1 also fires on the test schematics of other checks: wire-2_similar_names.