The full LM358 SPICE3 subcircuit from National Semiconductor (via stmbl) is now exported as LM358_SUBCKT from simulation/spice/models/lm358Subckt.ts. Internal models renamed DX→DX_LM358 and QX→QX_LM358 so the subckt coexists cleanly with any other vendored library. Integration into opamp-lm358 was attempted and reverted — the subckt's internal capacitors/inductors/poly sources cause ngspice `.op` to time out (>60 s) on a simple unity-gain follower. The behavioural B-source clamp remains the active model. When Phase 1c moves the default analysis to `.tran` (or we add `.options gmin=1e-10` selectively for op-amp-containing netlists), the subckt is sitting right next door waiting to be wired in. Phase 2.2 lockdown test guards the asset: - declares `.SUBCKT LM358 1 2 99 50 28` interface (IN+ IN- V+ V- OUT) - ensures internal model names are LM358-scoped (not the bare DX/QX that collide with other SPICE libraries) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| lm358Subckt.ts | ||