Repository navigation
v0.2.1
circsim v0.2.1
The validation bench gets live and honest: the Live Bench now animates in real time, the Board Critic gains two physics-based checks, and the whole test suite runs against real ngspice on every platform.
Live Bench
- Live LED glow during transient runs — LEDs now blink in step with the simulation (watch the bundled 555 blinker demo run). Previously glow only updated on a DC operating-point solve.
- Fixed reversed LEDs on both bundled demo boards —
first-lightandblinker-555shipped with the diode reverse-biased (dark LED). A guard test now pins correct polarity on every bundled board. - Coach polarity fix — the "wired in backwards" diagnosis now derives anode/cathode from the same resolved pin map the simulator wires by, so the coach can never disagree with the sim.
Board Critic
- New: IR-drop check — builds a resistive graph of each power rail's actual copper (tracks, vias, pads), injects the operating-point currents, and reports the worst rail sag with a plain-language headline (warn >2 %, error >5 % sag).
- New: loop-area check — flags clock/high-speed nets whose signal↔ground-return loop area looks EMI-prone (explicitly a v1 heuristic).
Reliability
- Fixed the Unix test hang — an AB-BA deadlock between ngspice's background thread and synchronous FFI calls could brick the process under CPU contention. All engine commands are now issued asynchronously and strictly serialized; teardown drains the background thread before unloading. CI now runs the full real-ngspice integration suite on Windows, macOS (x64 + arm64), and Linux.
- Fixed macOS/Linux code-model manifests — earlier bundles listed only one of the six XSPICE
.cmfiles due to a build-script bug. - App chrome shows the real version — the header was hardcoded to v0.1.0; it is now injected from
package.jsonat build time. - New end-to-end test drives the First Light flow in the real app: open demo → Energize → LED glows → lower the supply → it dims.
Downloads
Installers below are unsigned (expect the usual OS warnings): Windows NSIS .exe, macOS .dmg (Intel x64 and Apple Silicon arm64), Linux .AppImage and .deb.