From e1aafbf148a4de3f6bff968d02efd7d562b36a2a Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 14 Jun 2008 15:09:20 +0000 Subject: [PATCH] Adapt examples to new numparam code --- ChangeLog | 3 +++ examples/numparam/example.cir | 5 ++--- examples/numparam/pin.mod | 2 +- examples/numparam/pintest.cir | 6 +++++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e1114f24..2dbe5df88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/examples/numparam/example.cir b/examples/numparam/example.cir index a510eb518..6e13bc06e 100644 --- a/examples/numparam/example.cir +++ b/examples/numparam/example.cir @@ -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 diff --git a/examples/numparam/pin.mod b/examples/numparam/pin.mod index 2f353242b..b035cd2fb 100644 --- a/examples/numparam/pin.mod +++ b/examples/numparam/pin.mod @@ -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 diff --git a/examples/numparam/pintest.cir b/examples/numparam/pintest.cir index f7b78bd1a..80702e142 100644 --- a/examples/numparam/pintest.cir +++ b/examples/numparam/pintest.cir @@ -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