summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/snapshot/adder_mos.cir
blob: 603f1f119920088e5a9d4130a7565e46dc00e874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  Example: snsave
* load a circuit (including transistor models and .tran command)
* starts transient simulation until stop point
* store intermediate data to file
* begin with editing the file location
* to be run with 'ngspice adder_mos.cir'

.include adder_mos_circ.cir

.control
*cd to where all files are located
cd D:\Spice_general\ngspice\examples\snapshot
set noaskquit
unset ngdebug
set noinit
save vcc#branch 10
iplot v(10)
*interrupt condition for the simulation
stop when time > 500n
* simulate
run
* store snapshot to file
snsave adder500.snap
.endc

.END