Luke Harold Miles
02/06/2024, 10:03 PMStefan Schippers
02/07/2024, 9:34 PM.param Wmos1=2
.param Lmos1=0.15
...
Then you can run ngspice directly on the .spice file
ngspice -i circuit.spice
You can get simulation data accessible from ngspice control language by using the meas
command. alterparam
+ reset
commands can be issued to run another simulation with changed parameters, so you can build an optimization loops.