During spectre simulaiton, I am working in an RF model where I have to select the the netlist based on the port that is selected and pass as a parameter.
Can I do this with an if statement (I can do it in hspice).
A brief example
subckt testme n p
parameters port="m3" m3="m3" m1="m1" m2="m2"
if(port == m3) {
parameters a=30
parameters c=100f
} else if(port == m2) {
parameters a=20
parameters c=100f
} else {
parameters a=10
parameters c=100f
}
r1 n np resistor r=a
c1 np p capacitor c=c
ends testme
Appreciate the help