Model Referencing for HDL Code Generation - MATLAB & Simulink (original) (raw)

Main Content

Model referencing in your DUT subsystem enables you to:

For more information on model references, see Model Reference Behavior and Capabilities.

Generating HDL Code for Referenced Models

You can generate HDL code for the referenced model using the GUI or the command line.

Using GUI

  1. Right-click the Model block and select HDL Code >HDL Block Properties.
  2. In HDL Block Properties dialog box, set the Architecture property to ModelReference.
  3. Generate HDL code from your DUT subsystem.

Using Command Line

  1. Set the Architecture property of the Model block toModelReference. For example, suppose that you have a DUT subsystem named mydut, that includes a model reference,referenced_model. Enter this command:
    hdlset_param('mydut/referenced_model', ...
    'Architecture', 'ModelReference');
  2. Generate HDL code for your DUT subsystem.

Generate Code for Model Arguments

To generate a single Verilog® or SystemVerilog module or VHDL® entity for instances of a referenced model with different model argument values, see Generate Parameterized Code for Referenced Models.

Limitations

See Also

Model Settings

Topics