DEC-7 Fewer decoupling capacitors than power pins¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | easy, depends on NET-5 |
Data it needs: graph, part classes, rails, values.
Looks at. Power pins per part and rail, capacitors on that rail.
What it catches. A part with N power-input pins on one rail and fewer than N small capacitors on that rail, when the part's datasheet (or the default rule) wants one per pin.
Why it matters. A shared capacitor serves one pin well and the others through trace inductance; high-pin-count parts (MCUs, FPGAs, hubs) have their supply pins around the package so each edge of the die needs its own local charge. Too few capacitors is the most common sign of a symbol whose power pins were drawn stacked and decoupled as one.
Example. An STM32F4 in LQFP100 with its VDD/VSS pairs on all four sides of the package, and four 100 nF on +3V3 shared with a flash chip and a CAN transceiver: fewer capacitors than the MCU's supply pairs alone. AN4488 §8.3 asks one 100 nF per supply pair.
How to check. Count power-input pins per part per rail and the capacitors of ≤ 1 µF on that rail; capacitors already counted for another part on the same rail reduce the pool. Report the deficit.
Fix. One capacitor per power pin, placed at the pin.
References. AN4488 §8.3; AN2586 §6.4; MT-101 "Localized high frequency decoupling recommendations".
Settings¶
Set them in the project file under [checks."DEC-7"], or for one run with --set DEC-7.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
DEC-7.max_decoupling |
0.000001 F | the largest capacitor counted as a pin's local decoupling |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DEC-7 reports on it.
dec-7_caps_per_pin¶
warning DEC-7 #d6k U1 has 4 power pins on +3V3 (U1.1 (VDD), U1.2 (VDD), U1.3 (VDD) and U1.4 (VDD)) and 2 of the 4 capacitors of at most 1 µF are left for it after U2 and U3
net +3V3, part U1
max_decoupling = 1 µF (derived DEC-7 default)
fix: one capacitor per power pin, placed at the pin
DEC-7 also fires on the test schematics of other checks: conn-10_few_grounds, conn-4_no_ground, conn-8_micro_hdmi_pinout, drv-5_inverter_gate_resistor, drv-7_half_bridge_snubber, eth-3_mdio_pull_up, gnd-3_split_ground_joints, hs-7_usb_dp_dm_swapped, i2c-4_pull_up_to_signal, mem-10_ddr_reset_cke, mem-1_sd_pull_ups, mem-3_clk_and_detect_pulls, mem-8_ddr_zq, pin-3_unprotected_outputs, pin-4_unfused_inputs, pin-6_unfiltered_inputs, rail-19_unfiltered_analog_supply, ser-14_can_split_termination, test-1_unconnected_pins.