Adapt examples to new numparam code
This commit is contained in:
parent
f11dc7f203
commit
e1aafbf148
|
|
@ -1,3 +1,6 @@
|
||||||
|
2008-06-14 Holger Vogt
|
||||||
|
* eamples/numparam: adapt examples to new numparam code
|
||||||
|
|
||||||
2008-05-31 Dietmar Warning
|
2008-05-31 Dietmar Warning
|
||||||
* src/frontend/aspice.c: compliant processing of pid and wait() also under solaris
|
* src/frontend/aspice.c: compliant processing of pid and wait() also under solaris
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
* Param-example
|
* Param-example
|
||||||
.param amplitude= 1V
|
.param amplitude= 1V
|
||||||
|
|
||||||
.subckt myfilter in out
|
.subckt myfilter in out rval=100k cval=100nF
|
||||||
+ params: rval=100k cval= 100nF
|
|
||||||
Ra in p1 {2*rval}
|
Ra in p1 {2*rval}
|
||||||
Rb p1 out {2*rval}
|
Rb p1 out {2*rval}
|
||||||
C1 p1 0 {2*cval}
|
C1 p1 0 {2*cval}
|
||||||
|
|
@ -11,7 +10,7 @@ Cb p2 out {cval}
|
||||||
R1 p2 0 {rval}
|
R1 p2 0 {rval}
|
||||||
.ends myfilter
|
.ends myfilter
|
||||||
|
|
||||||
X1 input output myfilter 1k 1nF
|
X1 input output myfilter rval=1k cval=1n
|
||||||
V1 input 0 AC {amplitude}
|
V1 input 0 AC {amplitude}
|
||||||
|
|
||||||
.end
|
.end
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
* -- Model ----------------------------------
|
* -- Model ----------------------------------
|
||||||
.subckt SIMPLE_PIN input cathode anode params: resp=0.5
|
.subckt SIMPLE_PIN input cathode anode resp=0.5
|
||||||
|
|
||||||
* Input photocurrent is modled by a voltage
|
* Input photocurrent is modled by a voltage
|
||||||
* This generates a current using a linear voltage-controlled current source
|
* This generates a current using a linear voltage-controlled current source
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
* Test circuit for pin.mod
|
* Test circuit for pin.mod
|
||||||
|
|
||||||
|
*.include C:\Spice\tests\numparam\pin.mod
|
||||||
.include pin.mod
|
.include pin.mod
|
||||||
|
|
||||||
* Photodiode supply
|
* Photodiode supply
|
||||||
|
|
@ -9,7 +10,7 @@ Vbias psu 0 10V
|
||||||
Vlight input 0 2mW
|
Vlight input 0 2mW
|
||||||
|
|
||||||
* The pin diode
|
* The pin diode
|
||||||
Xpin input cathode anode SIMPLE_PIN 0.7
|
Xpin input cathode anode SIMPLE_PIN resp=0.7
|
||||||
|
|
||||||
* monitor resistor
|
* monitor resistor
|
||||||
Rmon anode 0 1ohm
|
Rmon anode 0 1ohm
|
||||||
|
|
@ -19,8 +20,11 @@ Rq psu cathode 1k
|
||||||
|
|
||||||
*.dc vlight 0 5mW 0.01mW
|
*.dc vlight 0 5mW 0.01mW
|
||||||
|
|
||||||
|
.dc vlight 0 10mW 0.01mW
|
||||||
|
|
||||||
.control
|
.control
|
||||||
dc vlight 0 10mW 0.01mW
|
dc vlight 0 10mW 0.01mW
|
||||||
|
*write pintest.raw all
|
||||||
plot V(anode)
|
plot V(anode)
|
||||||
.endc
|
.endc
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue