Contenido principal

hdlsetup

R2026b

Set model configuration parameters for HDL code generation

Description

hdlsetup(modelname) sets the parameters of the model specified by modelname to values required for HDL code generation.

For a list of the parameters and values this function sets, see Parameter Configurations.

example

Examples

collapse all

Use the hdlsetup function to set up a Simulink® model for HDL code generation.

Open the model:

modelname="hdlcoder_simple_up_counter";
open_system(modelname);

In the MATLAB Command Window, use the hdlsetup function to set model configuration parameters to values required for HDL code generation.

hdlsetup(modelname);
### ArtificialAlgebraicLoopMsg value is set from 'warning' to 'error' (revert).
### AlgebraicLoopMsg value is set from 'error' to 'warning' (revert).
### InheritOutputTypeSmallerThanSingle value is set from 'off' to 'on' (revert).

You can use the set_param function to change the model settings. For example:

set_param(modelname, "AlgebraicLoopMsg", "error");

Input Arguments

collapse all

Name of the model for which you want to generate HDL code, specified as a string.

Data Types: string

More About

collapse all

Version History

Introduced in R2006b