Switch in analogLib has Vopen and Vclose. I found this. Vopen must not be equal to Vclose. Otherwise, Spectre will announce an Error.
Then, I've done the following simulation. The schematic is below.
<1> Vopen=2V; Vclose=-2V.
<2> Ropen=100 Ohms; Rclose=1 Ohm.
<3> Is=1A; Vin=VCtrl.
VCtrl is sweeped from -3V to 3V. Then Vout=Rout*Is, which is equal to Rout in value. The simulation result is below.
In reply to xxgenerall:
We can see,
<1>VCtrl > Vopen, Rout=Ropen=100 Ohms.
<2>VCtrl < Vclose, Rout=Rclose=1 Ohm.
<3>Vclose < VCtrl < Vopen, Rclose < Rout < Ropen. So, Rout=f(VCtrl, Rclose, Ropen). The question is, what's the function relationship of "f"? For a given VCtrl, how to get the value of Rout?
Doc file "analoglibref.pdf" doesn's present how to use "switch". And no content about how to set Vopen/Vclose is described.
Can any one help me? Thanks in advance.
I don't see anything wrong (in fact your posts don't actually state what your issue is - you just show what you simulated and what the results are). Maybe if you look at my recent reply on the switch component that might help?
In reply to Andrew Beckett:
OK, I'd not seen your third append when I posted. The relationship is described in "spectre -h relay" (as mentioned in the other post).