I am trying to plot a basic inverter. Warning says...
# sky130
s
I am trying to plot a basic inverter. Warning says
nfet
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 "
1
s
the warning is about ib (body current) vector having no values (there is no body current in this simulation). To get rid of the warning add command
remzerovec
before the write command.
s
thanks
@Stefan Schippers should the simulation work, I am unable to plot the graph
s
try
plot 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:
Copy code
.control
  save all
  dc Vin 0 1.8 0.1
  remzerovec
  write test.raw
  set appendwrite
  op
  remzerovec
  write test.raw
.endc
s
Thank you very much. Its working now. I will now check on how to write these commands from user manual. Thank you very much