Jon Ho
09/07/2022, 7:21 AMStefan Schippers
09/07/2022, 8:18 AM.control
save all
dc vin 0 1.8 0.001
write inverter.raw
.endc
Stefan Schippers
09/07/2022, 8:20 AMdc
, save
, write
commandsStefan Schippers
09/07/2022, 8:27 AMJon Ho
09/07/2022, 1:29 PMStefan Schippers
09/07/2022, 5:07 PMcontrol / .endc
if you use ngspice in interactive mode (ngspice-i circuit.spice
) . You use the old school .tran / .dc / .save if you use ngspice in background mode (ngspice -r circuit.raw -b circuit.spice
) In batch mode by default ngspice saves all voltages and all voltage source currents if no specific .save v(...) is present in the netlist.Stefan Schippers
09/07/2022, 5:09 PMJon Ho
09/08/2022, 12:47 AM