Truth Table

Represent logical decision-making behavior with conditions, decisions, and actions (HDL Coder)

Description

The Truth Table block is available with Stateflow®.

For information about the simulation behavior and block parameters, see Truth Table.

Tunable Parameters

You can use a tunable parameter in a Truth Table intended for HDL code generation. For details, see Generate DUT Ports for Tunable Parameters.

HDL Architecture

This block has a single, default HDL architecture.

HDL Block Properties

ConstMultiplierOptimization

Canonical signed digit (CSD) or factored CSD optimization. The default is none. See also ConstMultiplierOptimization.

ConstrainedOutputPipeline

Number of registers to place at the outputs by moving existing delays within your design. Distributed pipelining does not redistribute these registers. The default is 0. See also ConstrainedOutputPipeline.

DistributedPipelining

Pipeline register distribution, or register retiming. The default is off. See also DistributedPipelining.

InputPipeline

Number of input pipeline stages to insert in the generated code. Distributed pipelining and constrained output pipelining can move these registers. The default is 0. See also InputPipeline.

InstantiateFunctions

Generate a VHDL® entity or Verilog® module for each function. The default is off. See also InstantiateFunctions.

LoopOptimization

Unroll, stream, or do not optimize loops. The default is none. See also LoopOptimization.

MapPersistentVarsToRAM

Map persistent arrays to RAM. The default is off. See also MapPersistentVarsToRAM.

OutputPipeline

Number of output pipeline stages to insert in the generated code. Distributed pipelining and constrained output pipelining can move these registers. The default is 0. See also OutputPipeline.

ResetType

Suppress reset logic generation. The default is default, which generates reset logic. See also ResetType.

SharingFactor

Number of functionally equivalent resources to map to a single shared resource. The default is 0. See also Resource Sharing.

UseMatrixTypesInHDL

Generate 2-D matrices in HDL code. The default is off. See also UseMatrixTypesInHDL.

VariablesToPipeline

Insert a pipeline register at the output of the specified MATLAB® variable or variables. Specify the list of variables as a character vector, with spaces separating the variables.

Was this topic helpful?