Basic HDL Algorithms
The HDL Coder block library contains many basic blocks that you can add to your Simulink modeling environment and develop your HDL algorithm. These blocks include input sources, output sinks, and blocks that perform basic to complex math and trigonometric operations.
To filter the Simulink Library Browser to show only HDL-supported blocks, enter
hdllib. The blocks listed in this section
include those blocks that are only available in the
HDL Coder library. Blocks such as Add and
Product are available in the Simulink library in the
For a filtered list of Simulink blocks supported for HDL code generation, see Simulink Block List (HDL Code Generation).
|Display blocks that are compatible with HDL code generation|
Simulink Configuration Parameters
Test Points and Diagnostics
Logic and Bit Operations
An example that shows how to add test points to signals in your model and debug these signals in the generated HDL code.
Generate DUT ports for tunable parameters.
How to add annotations to generated HDL code using the DocBlock and model annotations
Flatten vector signals on entire model or at DUT level into a structure of scalar signals in generated VHDL code.
Use Float Typecast block to cast input to floating-point or fixed-point.