I run the spectre in command line, and when I use the alter statement in spectre , it doesn't work. Can anybody give me some advise about the staement? The following is the statement I use:
aa alter param=k1 value=2
The k1 is the parameter and was set 1 in the netlist.
I think this should work. I believe that one difference between HSPICE and Spectre is that in HSPICE, I believe the .alter command automatically kicks off a 2nd analysis, while in Spectre, you need to invoke it explicitly.
So, you'd need something like:
aa alter param=vg value=1
dcsweep_aa dc param=vd start=0 stop =2 step=0.1