Edge Detection

Purpose

Detect edges of pulse signal in given direction

Library

Control / Logical

Description

../../_images/edgedetection.svg

The output of the edge detection block changes to \(1\) when an edge is detected on the input signal. It returns to \(0\) in the following simulation step.

The block allows you to detect the following edges:

rising

The output is set to \(1\) when the input changes from \(0\) to a non-zero value.

falling

The output is set to \(1\) when the input changes from a non-zero value to \(0\).

either

The output is set to \(1\) when the input changes from \(0\) to a non-zero value or vice versa.

Parameters

Edge direction

The direction of the edges to detect, as described above.

Probe Signals

Input

The input signal.

Output

The output signal.