Skip to content

feat: add 6 new export formats (spice, bpc, connectivity-map, simple-3d, pnp-csv, bom-csv)#2848

Open
64johnlee wants to merge 3 commits intotscircuit:mainfrom
64johnlee:feat/add-spice-export-v2
Open

feat: add 6 new export formats (spice, bpc, connectivity-map, simple-3d, pnp-csv, bom-csv)#2848
64johnlee wants to merge 3 commits intotscircuit:mainfrom
64johnlee:feat/add-spice-export-v2

Conversation

@64johnlee
Copy link
Copy Markdown

Summary

Add 6 new export formats using existing circuit-json-to-* packages.

New Formats

Format Description Package
spice SPICE netlist circuit-json-to-spice
bpc Box-Pin-Color Graph circuit-json-to-bpc
connectivity-map Full connectivity map circuit-json-to-connectivity-map
simple-3d 3D SVG circuit-json-to-simple-3d
pnp-csv Pick and Place CSV circuit-json-to-pnp-csv
bom-csv Bill of Materials CSV circuit-json-to-bom-csv

Usage

tsci export MyCircuit.tsx -f spice      # MyCircuit.spice
tsci export MyCircuit.tsx -f bpc       # MyCircuit.bpc.json
tsci export MyCircuit.tsx -f connectivity-map  # MyCircuit-connectivity-map.json
tsci export MyCircuit.tsx -f simple-3d # MyCircuit-simple-3d.svg

Testing

  • Build succeeds

- spice: SPICE netlist format
- bpc: Box-Pin-Color Graph
- connectivity-map: Full connectivity map
- simple-3d: 3D SVG representation
- pnp-csv: Pick and Place CSV
- bom-csv: Bill of Materials CSV

All use existing circuit-json-to-* packages.
Implements tsci check routing [file] to:
1. Accept an optional file path (or use project entrypoint if omitted)
2. Run the circuit JSON generator with routing enabled
3. Report routing DRC errors and warnings
4. Exit with code 1 if routing errors are found

Based on the existing check placement and check netlist patterns.
Addresses issue tscircuit#2808.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant