| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink HDL Coder |
| Contents | Index |
The exercises in this introduction use a preconfigured demo model. All blocks in this demo model support HDL code generation, and the parameters of the model itself have been configured properly for HDL code generation.
After you complete the exercises, you will probably proceed to generating HDL code from your existing models, or newly constructed models. Before you generate HDL code from your own models, you should do the following to ensure that your models are HDL code generation compatible:
Use the hdllib.m utility to create a library of all blocks that are currently supported for HDL code generation, as described in Supported Blocks Library. By constructing models with blocks from this library, you can ensure HDL compatibility for all your models.
The set of supported blocks will change in future releases, so you should rebuild your supported blocks library each time you install a new version of this product.
Use the Run Compatibility Checker option (described in Selecting and Checking a Subsystem for HDL Compatibility) to check HDL compatibility of your model or DUT and generate an HDL Code Generation Check Report.
Alternatively, you can invoke the checkhdl function (see checkhdl) to run the compatibility checker.
Before generating code, use the M-file utility hdlsetup.m, as described in Initializing Model Parameters with hdlsetup, to set up your model for HDL code generation quickly and consistently.
![]() | Introduction to HDL Code Generation | Overview of Exercises | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |