TruthTable
This block defines a truth table for representing boolean expressions.
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nin | Number of inputs | Number of block inputs | Number | |
nout | Number of outputs | Number of block outputs | Number | |
mat | Truth table | Table that represents Boolean expressions in a matrix. The matrix defines all the possible block outputs that contain a logical combination of input elements. | Matrix | |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin | |
Port 2 | explicit | output | nout | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |