Skip to content

v0.2.5 — op-informed rail sensing, Schmitt oscillators, koffi 3.1.1

Choose a tag to compare

@github-actions github-actions released this 14 Jul 16:23
· 251 commits to master since this release

Highlights

  • Op-informed rail sensing. Digital logic chips (CD4000 / 74HC) whose VDD sits on a switched or derived rail — e.g. a rail behind a high-side FET, with no bench supply directly attached — now get the correct logic swing. A first operating-point solve measures the actual rail voltage and a second pass regenerates the chip's output swing and input thresholds from it. Includes a per-net rail-voltage override (set it from the Net Voltages panel) and a gated-off warning when a switched rail reads ~0 V at the operating point (with a one-click "set rail voltage").
  • Schmitt-trigger oscillators self-oscillate. CD40106 / 74HC14 Schmitt inverters now model true hysteresis, so an RC Schmitt astable actually oscillates rail-to-rail instead of parking at mid-rail.
  • LM339 quad comparator — full 14-pin, four-unit support.
  • More accurate floating-net detection — per-subckt terminal-conductivity analysis refines which dangling nets get bled to ground.

Under the hood

  • ngspice FFI modernized to koffi 3.1.1 (stock, all platforms). The process-exit teardown race behind koffi issue #271 — an intermittent crash when quitting while a simulation was still streaming callbacks — is handled by circsim's clean simulation-host teardown (halt + join the background thread before exit). The native koffi fix is being submitted upstream.

Quality

  • 1496 automated tests, including real-ngspice integration coverage for the new rail-sensing pipeline (two-pass derivation, gated-off fallback, and the manual override).

Installers are unsigned (see the project notes on first-run prompts).