Add or Remove the HDL Configuration Component

What Is the HDL Configuration Component?

The HDL configuration component is an internal data structure that HDL Coder™ creates and attaches to a model. This component lets you view the HDL Code Generation pane in the Configurations Parameters dialog box and set HDL code generation options. Normally, you do not need to interact with the HDL configuration component. However, there are situations where you might want to add or remove the HDL configuration component:

  • A model that was created on a system that did not have HDL Coder installed does not have the HDL configuration component attached. In this case, you might want to add the HDL configuration component to the model.

  • If a previous user removed the HDL configuration component, you might want to add the component back to the model.

  • If a model will be running on some systems that have HDL Coder installed, and on other systems that do not, you might want to keep the model consistent between both environments. If so, you might want to remove the HDL configuration component from the model.

Adding the HDL Coder Configuration Component To a Model

To add the HDL Coder configuration component to a model:

  1. In the Simulink® Editor, select Code > HDL Code.

  2. Select Add HDL Coder Configuration to Model.

  3. Save the model.

Removing the HDL Coder Configuration Component From a Model

To remove the HDL Coder configuration component from a model:

  1. In the Simulink Editor, select Code > HDL Code, and select Remove HDL Coder Configuration from Model.

    HDL Coder displays a confirmation message.

  2. Click Yes to confirm that you want to remove the HDL Coder configuration component.

  3. Save the model.

Was this topic helpful?