Several understandings of Simulink generating HDL

Source: Internet
Author: User

1,simulink generates HDL words need to use a supported module, otherwise cannot be generated, the supported modules form a library, this library needs to build itself, with the Hdllib command generated, the official words:

The Hdllib function creates a library of blocks that is currently supported
For HDL code generation. The Block library, hdlsupported, affords quick
Access to supported blocks. By constructing models using blocks
Library, your models'll be compatible with HDL code generation.

2,simulink generate HDL words need to do some settings, such as the type of solver, in fact, can be done with a command, is Hdlsetup (' model name '), which will be automatically set to generate HDL mode.

3, the model structure of generating HDL is generally subsystem plus testbench, which is similar to the structure of HDL language, generates only HDL files for subsystem, and of course can generate testbench files, HDL can also be generated if the entire model is a function module of HDL, but it cannot be regenerated into testbench.

4, each added module has two properties interface, one is added when the left-click Module two times will come out a parameter settings dialog, there is a HDL block properties, right-click Module, in the Pop-up Properties menu, select hdlcode-"HDL block Properties, there are some HDL optimization options for this module, such as Pipeline,balance delay, DSP style, and so on.

5, HDL can be generated in HDL work flow advisor or directly.

The important triggering and enabling relationships between modules in 6,HDL correspond to trigger in Simulink, enable, input as Boolean, trigger and enable to execute, but not trigger or enable to remain.

Several understandings of Simulink generating HDL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.