Repository navigation
Conversation
Add functional circuit placement, bounded orientation passes, serialized scene guards, verified capacitor mappings, and compact LED-driver layouts. Include native KiCad 9/10 regression coverage, corpus and performance reports, and matched renders.
|
This is badly needed capability, but is also a ton of code which I'm not sure is in a shape conducive to efficient human review. And while it's pretty amazing that it can generate a semi-coherent schematic, the quality of results could use more work, which I suspect would benefit from rapid iteration outside the core repo. What do you think, instead, of having this as a plugin that lives in your own package that you would publish on pip (eg,
If that sounds reasonable, the plugin infrastructure would be my next priority after the in-progress strict-params change. I also see changes here to add a per-Block symbol infrastructure. I need to think on that a bit more, as well as what is the right API. I'm leaning towards footprints having an optional schematic symbol field and pinmap, and kicad-schematic-import capable blocks filling the optional schematic symbol field by default. Not sure about pinmaps, especially deduplicating pinmaps between symbol and footprint. But in the meantime, you should be able to maintain a registry of blocks -> kicad symbols. |
|
Thanks, Ducky! One thought on the plugin work: would it make sense for reusable PB circuit blocks to optionally point to a reference PCB layout? For example, a buck converter could provide relative placement and local routing for a verified footprint combination, and the plugin could check that the compiled block matches before applying it. The board designer would still choose where the converter goes and route its connections to the rest of the board. I saw that Sublayout already supports restoring prerouted blocks, and |
Add opt-in schematic export from compiled PB designs. The exporter maps symbols, places and routes functional circuits, and writes hierarchical KiCad schematics with machine-readable layout and routing evidence.
The final review fixes mirrored arc geometry and arc clearance bounds, consolidates wire serialization and page-fit rules, and covers native test artifact lifetimes.
Local verification on the PR head: 721 PB tests passed with KiCad 9 and 10 enabled. Repository-wide Black and strict mypy passed.
Contributor License Agreement
Verification of the five audit fixes
PB
7a3b262rejects cross-net endpoint contacts, T-junctions and collinear overlaps before publishing a schematic. The writer and router use consistent pin escapes and coordinate rounding. With the reported two-part fixture at 35.56 mm separation, the unsafe placement is rejected with the nets, pins and coordinate. The 50.8 mm control and a true wire crossing preserve the expected connectivity in KiCad 9.0.3 and 10.0.7. Native checks also cover fractional placement coordinates.Explicit diode mappings take precedence over footprint defaults and registry inference. The plain diode, Zener and Schottky fixtures compiled with export enabled and disabled, retained pad polarity, and resolved the expected KiCad symbols. An automatically named Overview content sheet keeps its region title and receives a distinct sheet title alongside reserved or explicitly assigned names.
Local verification on this head passed all 727 PB tests with native KiCad enabled. Black checked 564 files and strict mypy checked 553. Independent reviewers checked the electrical regressions, category symbol mappings and cross-group title collision.