Ayushman Tripathi
01/28/2023, 8:12 AMStefan Schippers
01/28/2023, 10:32 AMsky130_tests/test_sweep_mos_w.sch
.
this shows various I/V curves for a MOS tranistor at different W
values. Sweeping parameters in ngspice is possible but tricky.
Do not try to directly change model values with alter
(i never got this working).
Define some parameters for W and L, (.param W=0.5
) use alterparam
to change them: alterparam W = $&w_act
(w_act
is the loop variable. You need a reset
statement after that alterparam.