Multiplier

This function is a multiplier 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 multiplied along with the output gain and are added to the output offset. This model operate in DC, AC and Transient analysis modes. However, in AC analysis it is important to remember that results are invalid unless only one input of the multiplier is connected to a node which bears an AC signal (this is exemplified by the use of a multiplier to perform a potentiometer function: one input is DC, the other carriers the AC signal).

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

Example

a3 [1 2 3] 4 sigmult

.model sigmult mult(in_offset=[0.1 0.1 -0.1] in_gain=[10.0 10.0 10.0] out_gain=5.0 out_offset=0.05)

See also

XSPICE Devices
XSPICE Code Models