| Simulink® HDL Coder™ | ![]() |
hdlsetup
hdlsetup('model')
hdlsetup changes the parameters of the current model (bdroot) to values that are commonly used for HDL code generation.
hdlsetup('model') changes the parameters of the model specified by the 'model' argument to values that are commonly used for HDL code generation.
A model should be open before you invoke the hdlsetup command.
The hdlsetup command uses the set_param function to set up models for HDL code generation quickly and consistently. The model parameters settings provided by hdlsetup are intended as useful defaults, but they may not be appropriate for all your applications.
To view the complete set of model parameters affected by hdlsetup, view hdlsetup.m in the MATLAB editor.
See the "Model Parameters" table in the "Model and Block Parameters" section of the Simulink documentation for a summary of user-settable model parameters.
hdlsetup configures Solver options that are recommended or required by the coder. These are
Type: Fixed-step. This is the recommended solver type for most HDL applications.
The coder currently supports variable-step solvers under the following limited conditions:
The device under test (DUT) is single-rate.
The sample times of all signals driving the DUT are greater than 0.
Solver: Discrete (no continuous states). Other fixed-step solvers could be selected, but this option is usually the correct one for simulating discrete systems.
Tasking mode: SingleTasking. The coder does not currently support models that execute in multitasking mode.
Do not set Tasking mode to Auto.
![]() | hdlnewforeach | makehdl | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |