hdlsetup
Set up model parameters for HDL code generation
Syntax
Description
hdlsetup("modelname")
sets the parameters of the model specified by
to common default values for HDL code generation.modelname
Open the model before you invoke thehdlsetup
command. After usinghdlsetup
, you can useset_param
to modify these default settings. For example:
set_param(gcs,"Solver","VariableStepDiscrete")
hdlsetup
configures. These parameters reside in theSolverpane of the Configuration Parameters dialog box.
Configuration Parameter Setting | Command-line Parameter Setting | Description |
---|---|---|
SetTypetoFixed-step andSolvertoDiscrete (no continuous states) . |
SetSolver toFixedStepDiscrete . |
This fixed-step solver is best suited for simulating discrete systems. Variable-step solvers are supported under limited conditions. |
SetFixed-step size (fundamental sample time)toauto . |
SetFixedStep toauto . |
IfFixed step sizeis set to |
Disable theTreat each discrete rate as a separate taskcheck box. | SetEnableMultiTasking tooff . |
HDL Coder™ does not currently support models that execute in multitasking mode.. |
hdlsetup
also configures other parameters that control error severity levels, data logging, and model display options. To view the complete set of model parameters affected byhdlsetup
, seeCheck for model parameters suited for HDL code generation.
Version History
Introduced in R2006b