DRAW-48 Functional block with no note on its sheet¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | mid, depends on NET-26 |
Data it needs: drawing geometry.
Looks at. The schematic drawing (geometry).
A functional block is a set of parts whose Block field holds the same name, such as AUX charge pump. Its heading is a text on the sheet whose first line is that name, case ignored. A reviewer who meets a block needs a note that says what it does and why it is drawn this way: an Information box, a list of facts, or a pointer such as See N13 to a note in the board's notes file. The check reports each block that has no such note.
A note is a text box or a table cell with text, or a free text that is neither a heading nor a cost line. A heading is bold, or at least drawing.heading_size tall. A cost line starts with a price, after an optional label: $0.19 @25 · $0.12 @1k or Sheet: $1.29 @25. Each note on a sheet belongs to blocks in this order:
- Every block on the sheet that has a part the note names by its reference, as a whole word (
R901). - Otherwise the nearest block, measured from the note's box to the nearest part body, pin or heading of the block, when that gap is at most
drawing.block.reach(25.4 mm). Every other block at mostdrawing.block.tie(2.54 mm) farther away gets the note too: a note between two blocks, such as one about a capacitor of each, serves both.
The finding points at the block's heading, or at its first part when the sheet has no heading for it (the message then says so). Parts of a block drawn on another sheet than its heading, such as a regulator's decoupling capacitors placed at their load, are left to the sheet with the heading. A block without a heading on any sheet is checked on every sheet that holds its parts.
Settings¶
Set them in the project file under [checks."DRAW-48"], or for one run with --set DRAW-48.NAME=VALUE. A name that starts with drawing. is shared by several checks and is set under that name alone.
| Setting | Default | Meaning |
|---|---|---|
drawing.block.reach |
25.4 mm | how far from a block's nearest part or heading a note may stand and still belong to it |
drawing.block.tie |
2.54 mm | blocks this much farther from a note than the nearest one get the note too |
drawing.heading_size |
2.54 mm | height of a section heading; larger bold text is a title |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-48 reports on it.
draw-48_block_notes¶
suggestion DRAW-48 #kpq block "Charge pump" (R4) has no note: nothing says what it does or why
sheet /, item block Charge pump
fix: a note box beside the block (Information, or See N.. for a note in the board's notes)
suggestion DRAW-48 #3sm block "Filter" (R3) has no note: nothing says what it does or why
sheet /, item block Filter
fix: a note box beside the block (Information, or See N.. for a note in the board's notes)