Hello dear members,

I have a filter circuit with R1,C1, C2, f, a, b as variables.

Now i want to assigned values to these variables like in Pspice

.Param C1=22n, C2=10n, f=1khz, a=1.414, b=1

and define the value of R1 as a function of the parameter i have defined in (1) .for example

R1={sqrt(b)/(2*PI*f*sqrt(C1*C2))}

How can i do this using Hyperlynx analog ?

Thank you and best regards.

Hi Alpha,

To do this in HyperLynx Analog, please follow these steps:

1- open Simulation> netlister header, and put the .param statement ".Param C1=22n, C2=10n, f=1khz, a=1.414, b=1, PI=3.14" in the "additioanl Spice header" section

2- In the schematic, select R1

3- In the Properties Editor, put {sqrt(b)/(2*PI*f*sqrt(C1*C2))} as the value for the "Value" property

4- In the Properties Editor, set the value of the "Order" to "Value= ELDO_PARAMS$" instead of "Value$ ELDO_PARAMS$"

You should see the correct syntax in the netlist as follows:

.Param C1=22n, C2=10n, f=1khz, a=1.414, b=1, PI=3.14

R1 N0 N1 VALUE={sqrt(b)/(2*PI*f*sqrt(C1*C2))}

Best Regards

Wael