Main Content

Display Blocks for HDL Code Generation in Library Browser

The hdllib function displays the blocks that are compatible with HDL code generation in the Library Browser. If you construct models by using blocks from this Library Browser, your models are compatible with HDL code generation.

In the Library Browser, parameter settings for blocks are compatible with HDL code generation, and therefore can differ from the default settings.

To display the blocks that are compatible with HDL code generation:

  • In the Apps tab, select HDL Coder. In the HDL Code tab, select HDL Block Properties > Open HDL Block Library.

  • Alternatively, at the command prompt, enter:

    hdllib
    

You can drag the blocks from the Library Browser into your model.

If you close and reopen the Library Browser in the same MATLAB® session, you continue to see only the blocks that are compatible with HDL code generation.

To reset the Library Browser to display all blocks, regardless of HDL code generation compatibility, click the button.

Alternatively, at the command prompt, enter:

hdllib('off')

To change the Library Browser to display only those blocks that are compatible with HDL code generation, click the button.

Generate Table of Supported Blocks

To generate an HTML table that lists the blocks that are compatible with HDL Code generation:

  1. At the command prompt, enter:

    hdllib('html')

    hdllib creates the hdlsupported library and these HTML reports:

    ### HDL supported block list hdlblklist.html
    ### HDL implementation list hdlsupported.html
  2. To see the generated list of blocks, click the hdlblklist.html link.

See Also

Related Topics