This function is a simple gain block with optional offsets on the input and the output. The input offset is added to the input, the sum is then multiplied by the gain, and the result is produced by adding 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 IN v v,vd,i,id,vnam NO   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 Real 0.0   NO   YES
gain Gain Real 1.0   NO   YES
out_offset Output offset Real 0.0   NO   YES


a1 1 2 amp

.model amp gain(in_offset=0.1 gain=5.0 out_offset=-0.01)

See also

XSPICE Devices
XSPICE Code Models