i need a ideal switch,just as the figure shows,when VG=3.3,switch is on ,vin=vout,when VG=0,switch is off. i want to use switch in analoglib to replace the ideal switch,but how to connect A B C D,if A=in,B=out,then how to connect C and D?besides,in switch parameters,what's the mean of open voltage and closed voltage,if vdd=3.3,then what's the proper value of open voltage and closed voltage?
You could have learned from the regular checkbacks necessary with your questions to provide some additional details from the start, e. g. the used simulation program. The question should be posted in the simulation forum, B.T.W.
You can simply connect C to VG and D to GND. Open and close voltage obvioulsy have to be values between 0 and 3.3V, e.g. 1 and 2 V, please pay attention to the control voltage polarity, not shown in your drawing.
There are some important differences between operation of an ideal switch and a FET, as shown in your drawing. As a possible variant, D could be connected to a virtual node at (Vin+Vout)/2. But don't want to go too far beyond the original horizon of your question.