Combinatorial Logic
R2026bImplement truth table
Libraries:
Simulink /
Logic and Bit Operations
Description
The Combinatorial Logic block implements a standard truth table for modeling programmable logic arrays (PLAs), logic circuits, decision tables, and other Boolean expressions. You can use this block in conjunction with Memory blocks to implement finite-state machines or flip-flops.
Tip
To programmatically add this block to a model named untitled,
use a command such as:
open_system(new_system);
add_block(sprintf('simulink/Logic and Bit\nOperations/Combinatorial \nLogic'),...
'untitled/Combinatorial Logic');Examples
Extended Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Logic and Bit Operations/Combinatorial Logic"
Example: add_block("simulink/Logic and Bit Operations/Combinatorial Logic","myModel/myBlock",MakeNameUnique="on")
More About
Extended Capabilities
Version History
Introduced before R2006a




