Spice model parameters (lp:#1766931)
Original report created by JKB (joel-bertrand)
I use sometimes model parameters. For example, I have created a library
with potentiometers :
.SUBCKT POT 1 2 3 wiper=0.5 Rtot=1k
.param w=limit(wiper, 0, 1)
R0 1 2 {Rtot*(1-w)}
R1 2 3 {Rtot*(w)}
.ENDS
With kicad 4.0.7, it was possible to indicate parameters in value fied (for
example POT wiper=0.1 Rtot=50k). WIth 5.0rc2, only POT is written in spice
netlist.
Regards,
JKB
Original tags: eeschema ngspice