A voltage-controlled switch changes between high and low resistance states based on a controlling voltage.
S<name> <node1> <node2> <ctrl+> <ctrl-> <model_name> [ON|OFF] [M=<m>]
| Parameter |
Description |
node1, node2 |
Switch terminal nodes |
ctrl+, ctrl- |
Controlling voltage nodes |
model_name |
Name of a .MODEL VSWITCH(...) definition |
ON / OFF |
Initial state |
M=m |
Multiplier |
S1 OUT 0 CTRL 0 SW_MOD
.MODEL SW_MOD VSWITCH(VT=2.5 VH=0.5 RON=1 ROFF=1MEG)
| Parameter |
Description |
VT |
Threshold voltage |
VH |
Hysteresis voltage |
RON |
On-state resistance |
ROFF |
Off-state resistance |
- When
V(ctrl+, ctrl-) > VT + VH, the switch turns ON (resistance = RON).
- When
V(ctrl+, ctrl-) < VT - VH, the switch turns OFF (resistance = ROFF).
- Between these thresholds, the switch maintains its current state (hysteresis).