Hello. I am trying to do an ac analysis and sweepi...
# analog-design
m
Hello. I am trying to do an ac analysis and sweeping the supply voltage and temperature at the same time. I want to have a vector of arbitrary voltages and temperatures, do the simulation do a plot in xterm and save the data as raw file for the xschem graph. When i run the attached code i only get one simulation, I should get three for my current inputs. Can somebody point out what is wrong?
h
See this (ngspice manual chapter 17.6.4 Foreach - End) or the tutorial at https://ngspice.sourceforge.io/ngspice-control-language-tutorial.html#nloops :
test
.control
set vdd_values = ( 1.8 2.2 3.3 )
foreach val $vdd_values
print $val
end
m
Thank you very much! Where in the loop should i put the write raw file and appendwrite to save all the plots in the same file?
r
How di you added the Tab for netlist?