repo.or.cz
/
gnucap-felix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
some interactive testing
[gnucap-felix.git]
/
tests
/
d_switch.disc.gc
blob
c288c0ce0c7f4f609d1de808f2ed1765a7455b6e
1
spice
2
3
4
.model pd sw vt=0 vh=1 ron=1e-12 roff=1e12
5
sw 1 2 1 0 pd
6
7
v1 1 0 pulse iv=0 pv=pv delay=1 rise=2
8
.param pv=4
9
10
r1 2 3 1k
11
c1 3 0 100u
12
13
.print tran v(nodes) disc(1) disc(2)
14
+ s0(sw) s1(sw)
15
+ method(c1)
16
+ hidden(0)
17
18
.tran 0 6 6 trace=a > s.out echo
19
.status notime
20
21
.options method traponly
22
.tran 0 6 6 trace=a > t.out echo
23
.status notime
24
.end