What better_erc does¶
better_erc is early. The KiCad diff tool is ready for daily use. The checks run from the shell and in CI with berc check, as a Rust library and inside the KiCad fork; the desktop app is a first prototype. This page lists what works today; FEATURES.md tracks every item with its status.
berc textconv:.kicad_sch,.kicad_pcband.kicad_profiles as sorted, line-oriented text forgit diff,git log -pand anything else that uses git's textconv. See Readable git diffs.- Import into one board model (docs/model.md): KiCad 8, 9 and 10 projects, schematics, boards and netlists read by better_erc itself (
erc_kicad), OrCAD Capture netlists (pstxnet, pstxprt, pstchip), Altium EDIF plus WireList, Altium Smart PDFs (the netlist in their bookmarks: vendor boards that come as nothing but a PDF), and pick-and-place CSV files from KiCad, Altium and Allegro (erc_import), all picked by one importer registry. - Checks (
erc_checks), run on a KiCad project read by better_erc itself (erc_kicad), with one finding type, a report of which checks ran and which could not run for lack of data, and the report as JSON or text (docs/engine.md): - I2C buses found from net names, including segments behind ties and voltage translators; missing, redundant, unequal or out-of-range pull-ups, pull-ups through series resistors to nowhere, series resistors that are too large (
I2C-1,I2C-2,I2C-3,I2C-7,I2C-9,I2C-10) - parts without a value, placeholder values like
?orTBD(fitted or not), resistor values that don't read or are written in a non-standard way (BOM-5,BOM-6,BOM-9,BOM-10) - MOSFET symbols whose pins aren't named G, S and D (
LIB-3) - sheet documentation: functional blocks (a
Blockfield) without a note, placeholders left in notes and fields,See N12references to a missing note, block names that contradict their parts (DRAW-48toDRAW-51) berc check: the checks on a KiCad project (or a KiCad netlist, Altium, OrCAD, Smart PDF or PnP file) from the shell or a CI job, as text, JSON, SARIF (GitHub code scanning) or Markdown (a PR comment), with an exit code by severity and a baseline so only new findings fail.berc explain IDandberc checks listshow the catalogue. See Checks in CI.berc diff --pnp A B: two pick-and-place files, two boards, or a board and the PnP file exported from it compared footprint by footprint (position, rotation, side, value, package), with tolerances.berc diff --nets A B: the nets of any two designs (a schematic, a netlist, an Altium export, a Smart PDF) compared as the pins each net connects, whatever their names: renamed, removed and added nets.berc place-fields PROJECT: symbol fields that overlap something (DRAW-9,DRAW-34) moved into a column beside their body; a dry run by default,--writeedits the schematic. See Placing fields.berc probe-access PROJECT: where a hand probe reaches each net, per board side: test point, connector and part pads (also one series part away) and the vias, as a table or JSON. See docs/probe-access.md.berc fp: footprint review.berc fp hashprints a footprint's review hash, the same for a library file and every board copy of it;berc fp checkchecks every (library footprint hash, MPN) pair against the footprint reviews of the parts snapshot,berc fp check --libevery symbol of a symbol library against a part source's reviews,berc fp todolists what a board needs reviewed, one line per footprint with its families and MPNs under it, andberc fp acceptrecords a review in the part source;berc fp modelreads each footprint's 3D models and measures them against it. See Footprint review.- The app (
better_erc, egui, cratebetter_erc_app): an import tab that opens any design the registry reads (and Altium or OrCAD files picked one by one) and shows its findings with their explanations and the checks that did not run, and tabs for nets (power rails, grounds and switching nodes from names and pin types), I2C buses, style findings and inputs; a footprint review tab that draws a footprint over its datasheet drawing and records the review in the part source (see Reviewing in the app). - Signal levels (crate
erc_levels): a database of the levels logic families, buses and differential standards define (74xx and CD4000, JEDEC LVCMOS/SSTL/HSTL, I2C, RS-485, CAN, LVDS, ECL, USB, Ethernet and more), every number with the document, table and page it was read from. See docs/signal-levels.md. - The library (crate
better_erc): all of the above for Rust code in one dependency.