Main Content

hdllib

Display blocks that are compatible with HDL code generation

Description

example

hdllib displays the blocks that are supported for HDL code generation, and for which you have a license, in the Library Browser. To build models that are compatible with the HDL Coder™ software, use blocks from this Library Browser view.

If you close and reopen the Library Browser in the same MATLAB® session, the Library Browser continues to show only the blocks supported for HDL code generation. To show all blocks, regardless of HDL code generation compatibility, at the command prompt, enter hdllib('off').

example

hdllib('off') displays all the blocks for which you have a license in the Library Browser, regardless of HDL code generation compatibility.

example

hdllib('html') creates a library of blocks that are compatible with HDL code generation. It generates two additional HTML reports: a categorized list of blocks (hdlblklist.html) and a table of blocks and their HDL code generation parameters (hdlsupported.html).

To run hdllib('html'), you must have an HDL Coder license.

example

hdllib('librarymodel') displays blocks that are compatible with HDL code generation in the Library Browser. To build models that are compatible with the HDL Coder software, use blocks from this library.

The default library name is hdlsupported. After you generate the library, you can save it to a folder of your choice.

To keep the library current, you must regenerate it each time that you install a new software release.

To run hdllib('librarymodel'), you must have an HDL Coder license.

Examples

collapse all

To display blocks that are compatible with HDL code generation in the Library Browser, enter this command.

hdllib
### Generating view of HDL Coder compatible blocks in Library Browser.
### To restore the Library Browser to the default Simulink view, enter "hdllib off".

Library Browser showing blocks compatible with HDL code generation

To restore the Library Browser to the default view, in the Library Browser, click the exit HDL-compatible blocks mode button. Alternatively, at the command line, enter this command.

hdllib('off')
### Restoring Library Browser to default view; removing the HDL Coder compatibility filter.

Restored Library Browser

To create a library and HTML reports showing the blocks that are compatible with HDL code generation, enter this command.

hdllib('html')
### HDL supported block list hdlblklist.html
### HDL implementation list hdlsupported.html

The hdlsupported library opens. To view the reports, click the hdlblklist.html and hdlsupported.html links.

Library Browser showing HTML reports and blocks that support HDL code generation

To create a library that contains blocks that are compatible with HDL code generation, enter this command.

hdllib('librarymodel')

The hdlsupported block library opens.

Library Browser showing blocks that support HDL code generation

Version History

Introduced in R2006b