Main Content

Check for model parameters suited for HDL code generation

Check ID: com.mathworks.HDL.ModelChecker.runModelParamsChecks

Check ID: com.mathworks.HDL.ModelAdvisor.runModelParamsChecks

Check for model parameters set up for HDL code generation.

Description

This check verifies whether the model parameters that you specify are compatible for HDL code generation. This check ensures that you use these settings in the Configuration Parameters dialog box.

Command-Line Parameter SettingConfiguration Parameter Setting
Set Solver to FixedStepDiscrete.Set Type to Fixed-step and Solver to Discrete (no continuous states).
Set FixedStep to auto.Set Fixed-step size (fundamental sample time) to auto.
Set EnableMultiTasking to off.Disable the Treat each discrete rate as a separate task check box.
Set AlgebraicLoopMsg to errorSet 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 BlockReduction to offDisable the Block Reduction check box.
Set ConditionallyExecuteInputs to off.Disable Conditional input branch execution.
Set DefaultParameterBehaviour to Inlined. You can set this parameter at the command line by using set_param or hdlsetup.

Set Default parameter behavior to Inlined. If you want to set this parameter in the Configuration Parameters dialog box, you must have Simulink® Coder™.

Note

Enabling this parameter is the same as setting the InlineParams property to on. Setting InlineParams to off changes DefaultParameterBehavior value to Tunable.

Set DataTypeOverride to off.No dialog box prompt.
Set ProdHWDeviceType to ASIC/FPGA->ASIC/FPGA.Set Device vendor to ASIC/FPGA.
Set ShowLineDimensions and ShowPortDataTypes to on.In the Debug tab, on the Information Overlays > Ports section, select Base data types.
Set SignalLoggingSaveFormat to Dataset.No dialog box prompt.

If there are incompatible model parameters, HDL Coder™ displays a warning and lists the model parameters that have to be fixed.

Results and Recommended Actions

To fix this warning, click Modify Settings, and the code generator runs the hdlsetup command to set up the model parameters for HDL code generation. You can then rerun the check.

See Also