LIB-14 Unit of a multi-unit part not placed¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | easy, depends on IMP-1 |
Data it needs: graph, fitted parts.
Looks at. Units per part (library part), placed units.
What it catches. A multi-unit part with one or more units never placed in the schematic, so their pins exist on the board but connect to nothing.
Why it matters. An unplaced unit is not "unused", it is floating. CMOS gate inputs left open drift to mid-supply, where both output transistors conduct: extra supply current, heat and oscillation that couples into the neighbours. An op-amp channel with floating inputs can rail and oscillate, adding noise and current to the used channels of the same package. ERC says nothing, because there is no pin in the schematic to complain about.
Example. A dual op-amp (TLV9062) with only unit A placed for a sensor buffer: unit B's inputs float on the board, the output sits at one rail or oscillates, and the quiescent current of the package doubles. The fix is a placed unit B wired as a buffer to a mid-rail or ground reference (ANA-11).
How to check. The KiCad netlist lists every pin of the library part and the nets of the placed ones; pins of a unit that appear in no net at all, while other units of the same part are placed, are the finding. Parts whose unused units are explicitly allowed (no-connect flags on a placed unit) are not. better_erc (erc_checks/src/lib/lib_14.rs) reads the units from the schematic's library symbol: for each fitted part of a multi-unit symbol, a unit that is not placed and has pins whose numbers no placed unit carries is reported with those pins (a unit whose pins all repeat on placed units floats nothing). A design read from a netlist alone gives no units per library pin yet, so the check finds nothing there.
Fix. Place every unit; tie unused gate inputs to a rail and unused op-amps as followers to a valid common-mode voltage; or choose a part with fewer channels.
References. TI SCBA004, Implications of Slow or Floating CMOS Inputs, Rev. E (ti.com/lit/an/scba004); KLC S3.8.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only LIB-14 reports on it.
lib-14_unplaced_units¶
warning LIB-14 #4tv U1 (Amplifier_Operational:DUAL_OPAMP): unit B (pins 5 +INB, 6 -INB, 7 OUTB) not placed, its pins float on the board
part U1
fix: place every unit; tie unused gate inputs to a rail, wire unused op-amps as followers to a valid common-mode voltage
LIB-14 also fires on the test schematics of other checks: io-1_inputs.