Tools · 2025
SPICE++
A SPICE-class circuit simulator built from scratch in TypeScript, with an OpenAI agent that places, wires, runs, and debugs circuits from natural language.
- Role
- Creator
- Timeline
- 2025
- Team
- Solo
- Year
- 2025
Overview
A SPICE-class circuit simulator built from scratch: a TypeScript MNA solver with .op, .dc, .tran, and .ac analyses, Newton-Raphson with junction limiting, and MOSFET, diode, and op-amp models.
Challenge
A real SPICE engine plus an AI layer that can reason about circuits is a deep numerical and tooling problem, and it had to interoperate with the formats engineers actually use.
Solution
Shipped an OpenAI tool-calling agent with 15+ circuit actions so agents place, wire, run, and debug circuits from natural-language prompts. Implemented round-trip import and export across SPICE, LTspice, KiCad 6+, and Verilog with 40+ tests.
Impact
- Full MNA solver: .op/.dc/.tran/.ac, Newton-Raphson, device models
- OpenAI agent with 15+ circuit actions
- Round-trip SPICE / LTspice / KiCad / Verilog, 40+ tests
- Verified against UCSD ECE 35/45/65/100/101/102 coursework