kicad-developers team mailing list archive
Mailing list archive
Re: XSPICE code models in the simulator
You probably want to start by looking at the netlist exporter:
I think much of what you are looking for is in that class.
On Tue, Apr 23, 2019 at 3:53 AM Dmitry Salychev <darkness.bsd@xxxxxxxxx>
> Hi list.
> KiCad uses NGSpice as a simulation engine, and NGSpice has an extension
> called XSPICE which allows to create/program SPICE models in C.
> Could you briefly explain what should I start looking at in KiCad to
> generate a correct netlist for NGSpice to be able to use custom code
> I'm asking because there is a little effort of mine  to provide code
> models for 8-bit AVR RISC microcontrollers. There is a simulation of a
> simple ATmega8A-based circuit available  to give you an idea how it
> looks like. The circuit itself is drawn in KiCad, but I had to use NGSpice
> and mcusim.cm to manually create a netlist  to obtain a plot.
> Thanks for any help.
>  https://github.com/mcusim/MCUSim
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp