This function is a summer block with 2-to-N input ports. Individual gains and offsets can be applied to each input and to the output. Each input is added to its respective offset and then multiplied by its gain. The results are then summed, multiplied by the output gain and added to the output offset. This model operate in DC, AC and Transient analysis modes.

Port Table

Description Direction Default Type Allowed Types Vector Vector Bounds Null Allowed
Input vector IN v v,vd,i,id,vnam YES 2 - NO
Output OUT v v,vd,i,id NO   NO

Parameter Table

Name Description Data Type Default Value Limits Vector Vector Bounds Null Allowed
in_offset Input offset vector Real 0.0   YES Number of inputs YES
in_gain Input gain vector Real 1.0   YES Number of inputs YES
out_gain Output gain Real 1.0   NO   YES
out_offset Output offset Real 0.0   NO   YES


a2 [1 2] 3 sum1

.model sum1 summer(in_offset=[0.1 -0.2] in_gain=[2.0 1.0] out_gain=5.0 out_offset=-0.01)

See also

XSPICE Devices
XSPICE Code Models