summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/numparam/example.cir
blob: 6e13bc06e9257f903b111464161f30c77c99787d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
* Param-example
.param amplitude= 1V

.subckt myfilter in out rval=100k  cval=100nF
Ra in p1   {2*rval}
Rb p1 out  {2*rval}
C1 p1 0    {2*cval}
Ca in p2   {cval}
Cb p2 out  {cval}
R1 p2 0    {rval}
.ends myfilter

X1 input output myfilter rval=1k cval=1n
V1 input 0 AC {amplitude}

.end