Monoflop

Purpose

Generate pulse of specified duration when triggered

Library

Control / Logical

Description

../../_images/monoflop.svg

The output of the Monoflop changes to 1 when the trigger condition is fulfilled. When the trigger condition is no longer fulfilled, the output stays 1 for the given duration and changes to 0 afterwards.

Depending on the trigger type the behavior is as follows:

rising

The output is set to 1 for the given duration when the input changes from 0 to a non-zero value.

falling

The output is set to 1 for the given duration when the input changes from a non-zero value to 0.

level

The output is set to 1 when the input is a non-zero value. It stays 1 for the given duration after the input returns to 0. With this trigger type, the Monoflop acts like a Turn-off delay.

The pulse duration can be specified statically via a parameter or dynamically during the simulation via an input signal. The pulse duration must be greater than or equal to zero.

The Monoflop can be retriggered, i.e. if the trigger condition is fulfilled again while the output is 1, the turn-off time is recalculated based on the simulation time and the current pulse duration. If the pulse duration is zero when the Monoflop is retriggered, the output is reset to 0 immediately.

Parameters

Trigger type

The trigger type as described above.

Pulse duration source

Specifies whether the duration is determined by the Pulse duration parameter (internal) or by an external input signal (external).

Pulse duration

The duration for which the output is set to \(1\), in seconds \((\mathrm{s})\). If set to 0, the Monoflop is disabled and outputs \(0\) at all times.

Duration rounding (fixed-step)

If the duration is determined by an external signal and the Monoflop is used with a fixed-step solver, this parameter specifies how the duration is rounded to an integer multiple of the fixed step size.

Probe Signals

Input

The input signal.

Output

The output signal.