Signal and Data Type Support - MATLAB & Simulink (original) (raw)

HDL Coder™ supports code generation for Simulink® signal types and data types with a few special cases.

Buses

If your DUT or other blocks in your model have many input or output signals, you can create bus signals to improve the readability of your model. A bus signal or bus is a composite signal that consists of other signals that are called elements.

You can generate HDL code for designs that use virtual and nonvirtual buses. For example, you can generate code for designs that contain:

Supported Blocks with Buses

Bus-capable blocks are blocks that can accept bus signals as input and produce bus signals as outputs. For a list of bus-capable blocks that Simulink supports, see Bus-Capable Blocks. HDL Coder supports code generation for bus-capable blocks in the HDL Coder block library. For more details, see the "HDL Code Generation" section of each block page. The supported blocks include:

In addition, subsystems, models, and these user-defined functions support buses for simulation and HDL code generation:

Bus Support Limitations

You cannot generate code for designs that use:

Enumerations

You can generate code for Simulink, MATLAB®, or Stateflow enumerations within your design.

Requirements

Restrictions

Enumerations at the top-level DUT ports are not supported with the following workflows or verification methods:

Matrices

You can use matrix types with these blocks in your design. For more details, see the "HDL Code Generation" section of each block page.

Unsupported Signal and Data Types

See Also

Topics