Adapt examples to new numparam code

This commit is contained in:
h_vogt 2008-06-14 15:09:20 +00:00
parent f11dc7f203
commit e1aafbf148
4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,6 @@
2008-06-14 Holger Vogt
* eamples/numparam: adapt examples to new numparam code
2008-05-31 Dietmar Warning
* src/frontend/aspice.c: compliant processing of pid and wait() also under solaris

View File

@ -1,8 +1,7 @@
* Param-example
.param amplitude= 1V
.subckt myfilter in out
+ params: rval=100k cval= 100nF
.subckt myfilter in out rval=100k cval=100nF
Ra in p1 {2*rval}
Rb p1 out {2*rval}
C1 p1 0 {2*cval}
@ -11,7 +10,7 @@ Cb p2 out {cval}
R1 p2 0 {rval}
.ends myfilter
X1 input output myfilter 1k 1nF
X1 input output myfilter rval=1k cval=1n
V1 input 0 AC {amplitude}
.end

View File

@ -10,7 +10,7 @@
*
* -- 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
* This generates a current using a linear voltage-controlled current source

View File

@ -1,5 +1,6 @@
* Test circuit for pin.mod
*.include C:\Spice\tests\numparam\pin.mod
.include pin.mod
* Photodiode supply
@ -9,7 +10,7 @@ Vbias psu 0 10V
Vlight input 0 2mW
* The pin diode
Xpin input cathode anode SIMPLE_PIN 0.7
Xpin input cathode anode SIMPLE_PIN resp=0.7
* monitor resistor
Rmon anode 0 1ohm
@ -19,8 +20,11 @@ Rq psu cathode 1k
*.dc vlight 0 5mW 0.01mW
.dc vlight 0 10mW 0.01mW
.control
dc vlight 0 10mW 0.01mW
*write pintest.raw all
plot V(anode)
.endc