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
/
ngspice
blob
5f2e359f67918391d40a7cef9034975825a20f24
1
NGspice requires a real title. A blank line won't do.
2
3
.model zz npn bf=150
4
5
.subckt foo (vcc in out)
6
q1 (c b e 0) zz
7
Rc (c vcc) 10k
8
Re (e 0) 1k
9
Rb1 (b vcc) 100k
10
Rb2 (b 0) 10k
11
Cin (b in) 1u
12
Cout (c out) 1u
13
Rin (in 0) 100k
14
Rout (out 0) 100k
15
.ends
16
17
Vcc (V_cc 0) dc 20
18
Vin (in 0) ac .1
19
X1 (V_cc in out) foo
20
21
22
*>.print op v(nodes) vbc(q1.*)
23
.op
24
25
.print ac v(in) v(out)
26
.ac dec 1 1k 10k
27
28
.end