R1 IN 4 R='1g/hertz'
However, when I simulate the circuit using the following commands the
results are wrong:
.PARAM R='1g/(hertz)'
R1 IN 4 R
I would like to use something similar to the second method as the
function for the resistance is much more complicated.
Below I post a small code snippet of a simple circuit where I have
used these commands in case there is something else wrong:
MODEL TEST 2
.PARAM R='1g/(hertz)'
.PARAM Rs=10k
VIN IN 0 AC 1
R1 IN 4 R
R2 4 0 Rs
.AC DEC 10 2g 6g
.NET V(4) VIN ROUT=50 RIN=50
.PLOT AC S11(DB) S22(DB) S21(DB)
.PLOT AC VR1=PAR('V(IN)-V(4)') PAR('VR1/I(R1)')
.option post
.END
What I do is plot parameter VR1/I(R1) to get the value of resistance
R.
Thanks in advace for any help.
Instead of
> .PARAM R='1g/(hertz)'
> R1 IN 4 R
try
.PARAM R='1g/(hertz)'
R1 IN 4 'R'
--Mike
"Mike Engelhardt" <pm...@concentric.net> wrote in message
news:b7eijq$s...@dispatch.concentric.net...
"Frequency" is the variable, not "Hertz" (unless you've parameterized
"Hertz"). Even so, I doubt that it works in HSpice.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| Jim-T@analog_innovations.com Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
For proper E-mail replies SWAP "-" and "_"
If you're American, STAND UP!
...
.PARAM R(hertz)='1g/hertz'
...
R1 IN 4 'R(hertz)'
...
The above lines give you a frequency-dependent resistor in hspice.
Thanks all of you for your interest.