TruthTable

This block defines a truth table for representing boolean expressions.

    TruthTable

Library

LogicalOperations

Description

The TruthTable block defines a truth table used to represent boolean expressions. You must specify a matrix that defines all the possible block outputs in the Truth Table field. In consequence, the number of rows must be a power of two. Each row of the matrix contains a logic combination of input elements. Setting the parameter Truth Table defines the number of inputs and outputs in the following way : The number of inputs is as number of inupts ^2. The number of outputs is equal to the number of columns of the matrix. This block can be activated by an implicit input event or it can inherit the clock from the regular input (parameter Accepts Inherited ActivationOperations).

Parameters

TruthTable_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Number

nout

Number of outputs

Number

mat

Truth table

Matrix

externalActivation

External activation

This parameter defines if the block receives an external activation or inherits. When External Activation is used, an activation port is added to the block.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

nout

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no