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.


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™.


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, select Base data types and Signal Dimensions.
Set SampleTimeColors to on.In the Simulink Editor, in the Debug tab, select Information Overlays > Colors.
Set SignalLoggingSaveFormat to Dataset.No dialog box prompt.
Set UnconnectedInputMsg to error or warning.Set Unconnected block input ports to error or warning.
Set UnconnectedOutputMsg to error or warning.Set Unconnected block output ports to error or warning.
Set UnconnectedLineMsg to error or warning.Set Unconnected lines to error or warning.

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