getting started with the hdl workflow advisor -凯发k8网页登录

main content

getting started with the hdl workflow advisor

the hdl workflow advisor guides you through the stages of generating hdl code for a simulink® subsystem and the fpga design process, such as:

  • checking the model for hdl code generation compatibility and automatically fixing incompatible settings.

  • generation of hdl code, a test bench, and scripts to build and run the code and test bench.

  • generation of cosimulation or systemverilog dpi test benches and code coverage (requires hdl verifier™).

  • synthesis and timing analysis through integration with third-party synthesis tools.

  • back-annotation of the model with critical path information and other information obtained during synthesis.

  • complete automated workflows for selected fpga development target devices, including fpga-in-the-loop simulation (requires hdl verifier), and the simulink real-time™ fpga i/o workflow.

open the hdl workflow advisor

to start the hdl workflow advisor from a simulink model:

  1. in the apps tab, select hdl coder. the hdl code tab appears.

  2. select the dut subsystem in your model, and make sure that this subsystem name appears in the code for option. to remember the selection, you can pin this option. click workflow advisor.

to start the hdl workflow advisor for a model from the command line, enter hdladvisor(system). system is a handle or name of the model or subsystem that you want to check. for more information, see the function reference page.

for how to use the hdl workflow advisor to generate hdl code from a matlab® script, see basic hdl code generation and fpga synthesis from matlab.

hdl workflow advisor is not available in simulink online™.

in the hdl workflow advisor, the left pane lists the folders in the hierarchy. each folder represents a group or category of related tasks. expanding the folders shows available tasks in each folder. from the left pane, you can select a folder or an individual task. the hdl workflow advisor displays information about the selected folder or task in the right pane. the contents of the right pane depends on the selected folder or task. for some tasks, the right pane contains simple controls for running the task and a display area for status messages and other task results. for other tasks that involve setting code or test bench generation parameters, the right pane displays several parameter and option settings.

run tasks in the hdl workflow advisor

in the hdl workflow advisor window, you can run individual tasks, a group of tasks, or all the tasks in the workflow. for example, before you generate hdl code, prepare the simulink model for hdl code generation. in the set target folder, for each individual task, you can specify the target device settings and the target frequency. then, select the task that you want to run and click run this task. to run a task, all tasks before it must have run successfully.

to learn more about each individual task, right-click that task, and select what's this?.

to generate hdl code, run the workflow to the generate rtl code and testbench task. to run the workflow to a specific task inside a subfolder, expand that folder, and then right-click the task and select run to selected task.

to rerun a task that you have already run, click reset this task. hdl coder™ then resets the task and all tasks that follow it. for example, to customize the basic options for generating hdl code after running the generate rtl code and testbench task, right-click the set basic options task and select reset this task. you can then set the basic options on the model and click run this task to rerun the task.

to run all the tasks in the hdl workflow advisor with the default settings, in the hdl workflow advisor window, select run > run all. to run a group of tasks in a specific folder, select that folder and click run all.

fix hdl workflow advisor warnings or failures

in the hdl workflow advisor, if a task terminates due to a warning or failure condition, the right pane shows the warning or failure information in a result subpane. the result subpane displays model settings that you can use to fix the warnings. for some tasks, use the action subpane to apply those recommended actions.

for example, to apply the model configuration settings that the code generator reported in the result subpane, click the modify all button. after you click modify all, the result subpane reports the changes that were applied. and resets the task. you can now run this task.

save and restore the hdl workflow advisor state

by default, the hdl coder software saves the state of the most recent hdl workflow advisor session. the next time that you activate the hdl workflow advisor, it returns to that state. you can also save the current settings of the hdl workflow advisor to a named restore point. later, you can restore the same settings by loading the restore point data into the hdl workflow advisor.

the save and restore process does not:

  • include operations that you perform outside the hdl workflow advisor.

  • save or restore the state of hdl workflow advisor tasks involving third-party tools.

to save the workflow advisor state, in the hdl workflow advisor window, select file > save restore point as. enter a name and description, and then click save. you can save more than one restore point.

to restore a workflow advisor state, in the hdl workflow advisor, select file > load restore point. select the restore point that you want to load and click load. when you load a restore point, the hdl workflow advisor warns that the restoration overwrites the current settings.

view and save hdl workflow advisor reports

when you run tasks in the hdl workflow advisor, hdl coder generates an html report of the task results. each folder in the hdl workflow advisor contains a report for the checks within that folder and its subfolders. to access reports, select a folder, such as prepare model for hdl code generation, and in the report subpane, click save as. if you rerun the hdl workflow advisor, the report is updated in the working folder.

this report shows typical results after running the prepare model for hdl code generation tasks.

as you run checks, the hdl workflow advisor updates the reports with the latest information for each check in the folder. when you run the checks at different times, timestamps appear at the top right of the report to indicate when checks have been run. checks that occurred during previous runs have a timestamp following the check name. you can filter checks in the report. for example, you can filter out tasks that are not run from the report, or you can filter the report to show tasks that passed, and so on. to view the report for a folder each time the tasks in a folder are run, select show report after run.

see also

functions

  • | |

classes

related topics

    网站地图