DRAW-51 Block name that contradicts its parts¶
| Severity | Status | Implementation |
|---|---|---|
| info | runs in better_erc | mid, depends on NET-26 |
Data it needs: part classes.
Looks at. Part classes, the schematic drawing (geometry).
A block's name is the first thing a reviewer reads, and a name copied from another block keeps telling the wrong story. The check compares the words of a block name (the Block field, see DRAW-48) with the classes of the parts that carry it, on the whole board:
| The name has a word | The block holds | Finding |
|---|---|---|
DC-DC, DCDC, buck, boost, converter, SMPS, switcher |
a linear regulator and no inductor | a converter name on a linear regulator |
LDO, linear |
an inductor | a linear-regulator name on a block with an inductor |
Words are matched whole and case ignored; a ferrite bead is no inductor. The finding points at the block's heading where a sheet has one. It is a hint only: a block may hold both kinds of regulator on purpose.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-51 reports on it.
draw-51_block_names¶
info DRAW-51 #tww block "1V8 LDO" says linear regulator, but holds an inductor (L1 and U2)
sheet /, part L1, part U2, item block 1V8 LDO
fix: name the block after what it holds, or move the part to its own block
info DRAW-51 #yc4 block "3V8 DC-DC 500mA" says converter, but holds a linear regulator and no inductor (U1)
sheet /, part U1, item block 3V8 DC-DC 500mA
fix: name the block after what it holds, or move the part to its own block