Direct Lookup Table (n-D)

Index into N-dimensional table to retrieve element, column, or 2-D matrix (HDL Coder)

Description

The Direct Lookup Table (n-D) block is available with Simulink®.

For information about the simulation behavior and block parameters, see Direct Lookup Table (n-D).

HDL Architecture

This block has a single, default HDL architecture.

HDL Block Properties

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.

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.

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.

Restrictions

Required Block Settings

  • Number of table dimensions: HDL Coder™ supports a maximum dimension of 2.

  • Inputs select this object from table: Select Element.

  • Make table an input: Clear this check box.

  • Diagnostic for out-of-range input: Select Error. If you select other options, the coder displays a warning.

Table Data Typing and Sizing

  • It is good practice to size each dimension in the table to be a power of two. If the length of a dimension (except the innermost dimension) is not a power of two, HDL Coder issues a warning. By following this practice, you can avoid multiplications during table indexing operations and realize a more efficient table in hardware.

  • Table data must resolve to a nonfloating-point data type. The coder examines the output port to verify that its data type meets this requirement.

  • All ports on the block require scalar values.

Was this topic helpful?