Accessing Existing Resource Analysis Results - 2022.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
Release Date
2022.2 English

A Launch button is provided under the HDL Analysis tab of the Vitis Model Composer Hub block dialog box to launch the Resource Analyzer table using the existing resource utilization results for the model. Make sure the Target directory specified on the Compilation tab of the dialog box is readable by the Resource Analyzer, and the Analyzer type field is set to Resource. This will only work if you already ran analysis on the Simulink model and haven't changed the Simulink model since the last run.

When you click the Launch button, the Resource Analyzer table will display the resource utilization results stored in the Target directory specified on the Compilation tab, regardless of the option selected for Perform analysis (the Post Synthesis or Post Implementation option).

Figure 1. Launch Button

You can launch the Resource Analyzer table to display existing resource utilization results by entering the following command at the MATLABĀ® command prompt:

>> xlAnalyzeResource(get_param('model_name','handle'),'./netlist')
  • get_param('model_name','handle') gives you the model handle.
    Note: model_name represents the name of the model.
  • For the path to netlist directory, you can use an absolute path, or if you are using this API from the same directory where netlist directory is present, then you can use a relative path like './netlist'.