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
make distcheck happy
[gnucap-felix.git]
/
tests
/
d_subckt.7.ckt
blob
fa635966edd97d1d8722775252d0628be03dba67
1
* subckt, param, diode test
2
.model md1 d
3
.model md2 d is=1e-12
4
.model md3 d is=1e-9
5
6
i1 (0 1) 1
7
d1 (1 0) md1
8
i2 (0 2) 1
9
d2 (2 0) md2
10
i3 (0 3) 1
11
d3 (3 0) md3
12
13
.subckt foo (a k)
14
.param a=1
15
.model dio d is={isat}
16
d1 (a k) dio area={a}
17
.ends
18
19
i4 (0 4) 1
20
x4 (4 0) foo
21
i5 (0 5) 1
22
x5 (5 0) foo isat=1e-12
23
i6 (0 6) 1
24
x6 (6 0) foo isat=1e-9
25
26
i7 (0 7) 1
27
x7 (7 0) foo a=1000 isat=1e-12
28
i8 (0 8) 1
29
d8 (8 0) md2 area=1000
30
i9 (0 9) 1
31
x9 (9 0) foo a=100
32
33
.print op v(nodes)
34
.op
35
.end