Logical Operator

Purpose

Combine input signals logically

Library

Control / Logical

Description

../../_images/logical_operator.svg

The selected Logical Operator is applied to the input signals. The output of the Logical Operator is 1 if the logical operation returns true, otherwise 0. In case of a single input, the operator is applied to all elements of the input vector.

Parameters

Operator

Chooses which logical operator is applied to the input signals. Available operators are:

  • AND: \(y=u_n \& u_{n-1} \& \ldots \& u_1 \& u_0\)

  • OR: \(y=u_n | u_{n-1} | \ldots | u_1 | u_0\)

  • NAND: \(y=\neg(u_n \& u_{n-1} \& \ldots \& u_1 \& u_0)\)

  • NOR: \(y=\neg(u_n | u_{n-1} | \ldots | u_1 | u_0)\)

  • XOR: \(y= u_n \oplus u_{n-1} \oplus \ldots \oplus u_1 \oplus u_0\)

  • NOT: \(y=\neg u\)

Number of inputs

The number of input terminals. If the NOT operator is selected, the number of inputs is automatically set to 1.

Probe Signals

Input \(i\)

The \(i\)-th input signal.

Output

The block output signal.