Spice3f5

Current-controlled switch

Instance line
Wname …
Model line
.model mname csw
Terminals
W+, W-
Described in
Elementary devices
Source
src/lib/dev/csw/csw.c

Instance parameters (7)

Input and output (1)

nametypedescriptionnotes
controlinstanceName of controlling source

Input only (2)

nametypedescriptionnotes
onflagInitially closed
offflagInitially open

Output only (4)

nametypedescriptionnotes
pos_nodeintegerPositive node of switchlisted by show only when all parameters are asked for
neg_nodeintegerNegative node of switchlisted by show only when all parameters are asked for
irealSwitch current
prealInstantaneous power

Model parameters (7)

Input and output (5)

nametypedescriptionnotes
cswflagCurrent controlled switch modellisted by show only when all parameters are asked for
itrealThreshold currentlisted by show only when all parameters are asked for
ihrealHysterisis currentlisted by show only when all parameters are asked for
ronrealClosed resistancelisted by show only when all parameters are asked for
roffrealOpen resistancelisted by show only when all parameters are asked for

Output only (2)

nametypedescriptionnotes
gonrealClosed conductancelisted by show only when all parameters are asked for
goffrealOpen conductancelisted by show only when all parameters are asked for

Parameters are set on the instance or .model line as keyword=value, and read back with @name[keyword] or the show and showmod commands. See the device reference.