Limiter

The Limiter is a single input, single output function similar to the Gain Block. However, the output of the Limiter function is restricted to the range specified by the output lower and upper limits. This model will operate in DC, AC and Transient analysis modes.

Note that the limit range is the value below the upper limit and above the lower limit at which smoothing of the output begins. For this model, then, the limit_range represents the delta with respect to the output level at which smoothing occurs. Thus, for an input gain of 2.0 and output limits of 1.0 and -1.0 volts, the output will begin to smooth out at ±0.9 volts, which occurs when the input value is at ±0.4.

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_lower_limit Output lower limit Real     NO   YES
out_upper_limit Output upper limit Real     NO   YES
limit_range Upper & lower smoothing range Real 1.0e-6   NO   YES
fraction Smoothing percent/abs switch Boolean FALSE   NO   YES

Example

a5 1 2 limit5

.model limit5 limit(in_offset=0.1 gain=2.5 out_lower_limit=-5.0 out_upper_limit=5.0 limit_range=0.1 fraction=FALSE)

See also

XSPICE Devices
XSPICE Code Models