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 before.
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
Fixed-set and
Solver to Discrete (no continuous
states) . |
Set FixedStep to
auto . | Set Fixed-step size (fundamental sample
time) to auto . |
Set EnableMultiTasking to
off . | Clear the Treat each discrete rate as a separate task check box. |
Set AlgebraicLoopMsg to
error . | Set Algebraic loop to
error . |
Set SingleTaskRateTransMsg to
error . | Set Single task data transfer to
error . |
Set MultiTaskRateTransMsg to
error . | Set Multitask data transfer to
error . |
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 DefaultParameterBehavior to
Inlined . You can set this parameter at
the command line by using set_param or
hdlsetup . | Set Default parameter behavior to
|
Set DataTypeOverride to
off . | No dialog box prompt. |
Set ProdHWDeviceType to
ASIC/FPGA->ASIC/FPGA . | Set Device vendor to
ASIC/FPGA . |
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 have to be fixed.
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- 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)