I have published some simulation examples on my github https://github.com/bobc/kicad-simulation-examples.
There are spice models for:
- inverter (NOT gate)
- NAND gate
- 3 input NAND gate
- D latch
- D flip-flop
These should be used with the corresponding KiCad symbols in sim_logic.lib :
- CMOS_NOT
- CMOS_NAND
- CMOS_NAND3
- D_LATCH
- D_FLIPFLOP
I haven’t implemented all possible examples or done much verification, they are provided on “as is” basis, use at own risk blah blah. The projects should work with KiCad inbuilt ngspice as well as standalone ngspice if exported as spice netlist.
[updated : now should work out of the box with relative paths to spice library files]
@Joan_Sparky @Rene_Poschl I think this thread should be in “simulation” category.