hi all, I wants do get gain vs frequency response....
# sky130
a
hi all, I wants do get gain vs frequency response. How do i get ? I tried please check @srinivasan_muthukrishnan19 @Piyush Dwivedi hi @Stefan Schippers could you help me here ? I am doing ac analysis but getting as transient. like time domain vs gain. I need a plot frequency vs gain. How can I do ?
s
you have a tran and an AC analysis.you must select the ac analysis to plot ac results.
echo $plots
setplot ac1
c
tran simulation and ac simulation are lunch in same time. AC simulation is just ignored
s
I try to repeat. Before giving the
plot
command you must give the command
setplot ac1
otherwise you are seeing the output voltage and phase of a transient simulation, because this is the last simulation ran by ngspice. Since transient data is real and not complex phase is always zero,
Another simple possibility is to comment out the
tran
line and the
write
command after tran (and the
set appendwrite
)
s
@Stefan Schippers can we skip setplot ac1 if we run just ac analysis?
s
Yes the current plot is always the last simulation done.