hdlsetup
Set model configuration parameters for HDL code generation
Syntax
Description
hdlsetup(
sets the parameters of the model specified by modelname)modelname to values
required for HDL code generation.
For a list of the parameters and values this function sets, see Parameter Configurations.
Examples
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
Name of the model for which you want to generate HDL code, specified as a string.
Data Types: string
More About
This table lists the model configuration parameters that
hdlsetup configures.
| Command-Line Parameter Setting | Configuration Parameter Dialog Box Setting |
|---|---|
Set Solver to
FixedStepDiscrete. | Set Type to
For more information, see Fixed-Step Solver Details. |
Set FixedStep to
auto. | Set Fixed-step size
(fundamental sample time) to
|
Set EnableMultiTasking to
off. | Clear the Treat each discrete rate as a separate task check box. |
Set AlgebraicLoopMsg to
error. | Set Algebraic
loop to
|
Set SingleTaskRateTransMsg to
error. | Set Single task data
transfer to
|
Set MultiTaskRateTransMsg to
error. | Set Multitask data
transfer to
|
Set InheritOutputTypeSmallerThanSingle
to on. | Select Inherit floating-point output type smaller than single precision. |
Set BlockReduction to
off. | Clear the Block reduction check box. |
Set ConditionallyExecuteInputs to
off. | Clear the Conditional input branch execution. check box. |
Set You can set this
parameter at the command line by using
| Set Default parameter behavior to
If you want to set this parameter in the Configuration Parameters dialog box, you must have Simulink Coder™. |
Set DataTypeOverride to
off. | No dialog box prompt. |
Set ProdHWDeviceType to
ASIC/FPGA->ASIC/FPGA. | Set Device vendor to
|
Set ShowLineDimensions. | In the Simulink Editor, on the Debug tab, select Information Overlays > Signal Dimensions. |
Set SampleTimeColors to
on. | In the Simulink Editor, on the Debug tab, select Information Overlays > Colors. |
Set ShowPortDataTypes to
on. | In the Simulink Editor, on the Debug tab, select Information Overlays > Alias Data Types. |
Set SignalLoggingSaveFormat to
Dataset. | No dialog box prompt. |
If these settings are incompatible with other configuration parameters in the model, HDL Coder™ displays a warning and lists the model parameters that you must fix.
Version History
Introduced in R2006b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)