srinivasan_muthukrishnan19
01/10/2023, 4:44 AMnfet
has zero length but in circuit you can see length being .035um
. Also when I try to plot v(Vin), it says no vector available. can anyone help on this?
I am able to run test_cmos
and waveforms
are being plotted.
code_shown.sym
is as follows
name=NGSPICE only_toplevel=false
value="
.option wnflag=1
.option savecurrents
.control
dc Vin 0 1.8 0.1
op
write test.raw
save all
set appendwrite
.endc
"Stefan Schippers
01/11/2023, 1:07 AMremzerovec
before the write command.srinivasan_muthukrishnan19
01/11/2023, 8:25 AMsrinivasan_muthukrishnan19
01/11/2023, 8:27 AMStefan Schippers
01/11/2023, 11:19 AMplot dc1.vout dc1.vin
If you comment the op command dc1 becomes the default so you can just plot vin vout
.
Another way is to set the default plot:
setplot dc1
ALso note that your write command saves only the operating point.
The order of commands in your .control section should be:
.control
save all
dc Vin 0 1.8 0.1
remzerovec
write test.raw
set appendwrite
op
remzerovec
write test.raw
.endc
srinivasan_muthukrishnan19
01/11/2023, 12:14 PM