Control variables: control: Boolean variable denoting the switch position (modulation signal) Parameters: Ron: Leakage resistance in on state (default value = 1e-5 Ohm) Goff: Leakage conductance in off state (default value = 1e-5 Mho)
Logic:
contol = true: p-n2 is connected
contol = false: p-n1 is connected