Skip to content

Fixes for using ngspice builtin models

Graham Keeth requested to merge gkeeth/kicad:spice-builtin-models into master

This MR includes several bugfixes that enable the built-in ngspice models for various transistors (and maybe other devices) to be used. Without these fixes, the built-in SPICE model section of the spice model editor won't work for most device types because model information does not get written to the netlist .

Fixes #13774 (closed), #13775 (closed), and another bug that doesn't have a report (and may not have had any practical effect).

Example (misnamed) project for testing: diode_rectifier.zip. There's a simulation workbook you can use.

Without these fixes, this project will not simulate for multiple reasons, though you can remove all the transistor amplifiers and then the diode rectifier will then work.

With these fixes, these amplifiers simulate as expected.

Merge request reports