How to make a new circuit symbol generate a netlist?

Hello,
In KiCAD, I am trying to make a new circuit symbol (a two port element) and use it in my circuit schematic, which will help me generate a Netlist that I can feed into another simulation/SPICE program. Each time I place this two port element, I want it to generate something like the following in the netlist. How do I do that?

B01        3          7          jmod     area=2.16
.model jmod jj(rtype=1, vg=2.8mV, cap=0.07pF, r0=160, rN=16, icrit=0.1mA)

Essentially, I am trying to play with some superconductor simulation provided here: https://joeydelp.github.io/JoSIM/ex_usage/#basic-jtl-example, and would like to use KiCAD schematic editor to help me generate the netlist.

How do I do that?

The project attached (KiCad 7.0.6) may be taken as a reference.

I have modified a diode symbol by editing some fields in the ‘Symbol Properties’ window and put the .model statement into a file jjmod.lib.

Because this procedure is not standard, it still may cause issues.

new-device.7z (3.6 KB)

1 Like