Skip to content

fix: generate semiconductor load switches as six-pin chips - #547

Open
AnasSarkiz wants to merge 1 commit into
codex/load-switch-beforefrom
codex/load-switch-after
Open

fix: generate semiconductor load switches as six-pin chips#547
AnasSarkiz wants to merge 1 commit into
codex/load-switch-beforefrom
codex/load-switch-after

Conversation

@AnasSarkiz

@AnasSarkiz AnasSarkiz commented Sep 5, 2026

Copy link
Copy Markdown
Member

Stacked on #545; review and land the before snapshot PR first.

Exclude power-distribution, load, high-side and low-side semiconductor switch categories from the mechanical-switch matcher, including space/hyphen variants. TPS22918DBVR now uses <chip> and ChipProps, retaining VIN/GND/ON/CT/QOD/VOUT and the exact supplier footprint/courtyard snapshot. It follows the existing chip naming convention instead of forcing SW1; callers can supply the IC reference through name.

Updated generated-source, classification, schematic and PCB snapshots show the change. The rendered component has six source ports and zero internal connections. Existing slide/toggle/DIP/pushbutton classification is preserved, and nested metadata/category-field regressions are included.

Validation: 8 focused tests, 3 text snapshots and schematic/PCB snapshots pass; typecheck, formatting and build pass. The full local run had 217 passes, two existing CAD-test timeouts and one associated asynchronous 3D timeout error. C2943786 passed an isolated recheck; C9900017879 still hit its 10-second limit on this branch (it passed on the DDR branch). Both fixes also pass together: 28 focused tests, 14 text snapshots, schematic/PCB snapshots and typecheck. Repository CI currently targets PRs based on main, so this stacked base does not trigger those workflows until retargeted.

After schematic

This selects the appropriate imported component type; it does not add a behavioral load-switch simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant