In this topic:
Uxxxx nout1 nout2 vc+ vc- modelname
nout1 | Switch node 1 |
nout2 | Switch node 2 |
vc+ | Positive control node |
vc- | Negative control node |
modelname | Name of model. Must begin with a letter but can contain any character except whitespace and period '.'. |
.model modelname perfect_switch ( parameters )
Name | Description | Units | Default |
RMID | Switch resistance when control voltage is (VON+VOFF)/2 | ???MATH???\Omega???MATH??? | 1.0 |
VON | Voltage at which switch is fully on ( ???MATH???R_{switch}=0.0???MATH??? ) | V | 1.0 |
VOFF | Voltage at which switch is fully off ( ???MATH???R_{switch}=\infty???MATH??? ) | V | 0.0 |
The perfect voltage controlled switch model has zero on resistance and infinite off resistance.
The resistance of the switch is defined as follows: \[ V_{ramp} = \frac{V_{c}-VOFF}{VON-VOFF} \] \[ V_{ramp}>=1.0: R_{switch}=0.0 \] \[ V_{ramp}<=0.0: R_{switch}=\infty \] \[ 0.0 < V_{ramp} < 1.0: R_{switch} = \frac{1.0-V_{ramp}}{V_{ramp} \cdot RMID} \]
Note that the perfect voltage controlled switch model is noise-free
◄ Voltage Controlled Switch | Voltage Controlled Voltage Source ▶ |