hdlsetup

Set up model parameters for HDL code generation

Syntax

hdlsetup('modelname')

Description

hdlsetup('modelname') sets the parameters of the model specified by modelname to common default values for HDL code generation. After using hdlsetup, you can use set_param to modify these default settings.

Open the model before you invoke the hdlsetup command.

To see which model parameters are affected by hdlsetup, open hdlsetup.m.

How hdlsetup Configures Solver Options

hdlsetup configures Solver options used by HDL Coder™. These options are:

  • Type: Fixed-step. This is the recommended solver type for most HDL applications.

    HDL Coder also supports variable-step solvers under the following 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). You can use other fixed-step solvers, but this option is usually best for simulating discrete systems.

  • Tasking mode: SingleTasking. HDL Coder does not support multitasking mode.

    Do not set Tasking mode to Auto.

Was this topic helpful?