Engee documentation

Combinatorial Logic

Performs logical operations on the truth table.

blockType: CombinatorialLogic

Path in the library:

/Basic/Logic and Bit Operations/Combinatorial Logic

Description

Block Combinatorial Logic Implements a standard truth table for modeling programmable logic matrices (PLA), logic circuits, decision tables, and other Boolean (logical) expressions. This block can be used in conjunction with the blocks Memory to implement finite automata or triggers.

Truth table – this is a list of possible logical states of the block. The number of its lines is determined by the formula , where – number of input signals (with the number of input signals it turns out 4 lines). The index of each row is determined by the input signals:

.

It must be remembered that the input and output signals of this block are logical constants. false (0) and true (1).

Ports

Input

# IN_1 — Input signal
vector

Details

The input signal, specified as a vector.

Data types

Bool

Complex numbers support

Yes

Output

# OUT_1 — Output signal
scalar | vector

Details

The output signal.

Data types

Bool

Complex numbers support

Yes

Parameters

Main

# Truth table — The truth table
Array of real numbers

Details

As a parameter value Truth table A matrix is set that defines all possible outputs of the block. Each row of the matrix contains an output for a different combination of input elements. You must specify the outputs for each combination of input elements. The number of columns is equal to the number of block outputs.

Default value

[0 0;0 1;0 1;1 0;0 1;1 0;1 0;1 1]

Program usage name

TruthTable

Tunable

Yes

Evaluatable

Yes