I am using cadence virtuoso and i want to make an ideal switch so i tried to use the switch in analogLib the problem is that it is always closed whatever the control voltage may be.
You have to respect polarity, this is not anything like a real
relay where enough voltage (current) either way closes
the contact. Make sure "plus" is greater than "minus" voltage
if you intend for a positive applied voltage to close the switch.
It might help you to use a resistor load and voltage sources
to make the goings-on more "instinctive to assess".
I already checked for the polarity and it is good.
the control voltage is 5V and the other terminal is grounded.
I dont know where is the problem.
could you please explain it to me in more details