PLECS 3.7 Online Help

Logical Operator

Purpose

Combine input signals logically

Library

Control / Logical

Description

pict

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 = un &un -1 & ...& u1 & u0   
∙   OR  y = un |un-1 | ...|u1 |u0   
∙   NAND y = ~ (un & un-1 & ... & u1 & u0)   
∙   NOR  y = ~ (u  |u   | ... |u |u )
        n  n-1       1  0   
∙   XOR  y = un xor un-1 xor ...xor u1 xor u0
∙   NOT  y = ~ 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.