Generate Black Box Interface for Referenced Model - MATLAB & Simulink (original) (raw)

Main Content

When to Generate a Black Box Interface

Specify a black box implementation for the Model block when you already have legacy or manually-written HDL code. HDL Coder™ generates the HDL code that is required to interface to the referenced HDL code.

Code is generated with the following assumptions:

If you want to generate code for a multirate, multiclock DUT that includes a referenced model, see Model Referencing for HDL Code Generation.

How to Generate a Black Box Interface

To instantiate an HDL wrapper, or black box interface, for a referenced model:

  1. Right-click the Model block and select HDL Code >HDL Block Properties.
    In the HDL Block Properties dialog box:
  2. Generate HDL code for your DUT subsystem.

Caveats and Limitations

See Also

Topics