Skip to content

NAME-7 No nets found in strict mode: suggest +xVy power names and non-strict mode

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 project where better_erc's strict power naming finds no rail with a voltage: no net name matches +xVy (+3V3, +1V8, +12V0).

Why it matters. better_erc's power structure is derived from names first. The default reads the whole power name grammar (+3V3, VDD_1V8, +5V, 3.3V, 3P3V, -5V, VCC3V3); strict mode (PowerOptions::strict) counts only names with a +, the integer volts, V, and the decimals (+3V3). Nets named +V..., VCC, VDD or VBUS, or carrying power pins or power symbols, still become rails but without a voltage. A project whose rails carry no voltage in their names gets no voltages at all, and every check that compares levels silently does nothing. The finding says why and what to change.

Example. A design with +3.3V, +5V and VDD_1V8: strict mode reads no voltage from any of them (+5V lacks the decimal digit, +3.3V uses a dot); the default reads all three. A design with only VCC, VDD and VIO gets rails without a voltage in either mode.

How to check. Run the strict detection; zero rails with a voltage is a finding, with the names that look like rails listed.

Fix. Rename rails to +xVy (+3V3, +5V0), or run in non-strict mode and check what it picked up.

References. better_erc erc_analysis/src/power.rs (read_name: the power name grammar; Power::of: names, power symbols, power pins).

Test schematics

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

name-7_no_strict_power_names

The test schematic name-7_no_strict_power_names The test schematic name-7_no_strict_power_names

  suggestion NAME-7 #zbx    no rail name reads as `+xVy` (+3.3V, +5V, VDD_1V8): strict mode finds no voltage; the full grammar reads 3 of 3
                            board name-7_no_strict_power_names
                            power names = strict: `+`, volts, `V`, decimals (`+3V3`) (derived erc_analysis::power::read_name, strict)
                            fix: name rails `+3V3`, `+5V0`, or run in non-strict mode and check what it picked up

NAME-7 also fires on the test schematics of other checks: ana-10_opamp_feedback, ana-11_unused_channels, ana-16_gain_resistor_range, ana-21_dc_return, dec-12_reversed_polarized, draw-32_free_text, draw-34_too_close, draw-40_bend_before_symbol, draw-40_power_sideways, draw-41_pin_lead, draw-42_touching_colours, draw-43_sentence_capitals, draw-44_section_gap, draw-45_section_row, draw-46_leader_aim, draw-47_run_on_note, draw-7_wire_through_body, draw-9_text_overlap, gnd-7_chassis_ground, gnd-7_two_bonds, i2c-10_non_equal_pull_ups, i2c-1_no_pull_ups, i2c-2_multiple_pull_ups, i2c-7_segments, i2c-9_non_standard_pull_ups, lib-14_unplaced_units, lib-15_no_power_pins, lib-19_hidden_pins, lib-31_mount_attribute, rail-5_zener_shunt, rate-2_resistor_power, seq-5_bleeder, short-1_shunted_parts, wire-14_ground_pin_not_ground.