To perform timing analysis in Vitis Model Composer:
- Double-click the Vitis Model Composer Hub block in the Simulink model.
- Enter the following in the Vitis Model
Composer Hub dialog box:
- In the Analyze tab, set the Perform Analysis field to
Post SynthesisorPost Implementationbased on the runtime versus accuracy tradeoff. Post Synthesis timing is less accurate but runs faster, while Post Implementation timing is more accurate but runs slower. - Set the Analysis Type field to
Timing.
- In the Analyze tab, set the Perform Analysis field to
- In the Model Composer Hub dialog box, click Analyze.
When you generate, the following occurs:
- Model Composer generates the required files for the selected compilation target. For timing analysis Model Composer invokes Vivado in the background for the design project, and passes design timing constraints to Vivado.
- Depending on your selection for Perform Analysis (
Post SynthesisorPost Implementation), the design runs in Vivado through synthesis or through implementation. - After the Vivado tools run completes, the system collects timing path information and saves it in a specific file format from the Vivado timing database. At the end of the timing paths data collection the Vivado project is closed and control is passed to the MATLAB® /Model Composer process.
- Model Composer processes the timing information and displays a Timing Analyzer table with timing paths information (see below).
In the timing analyzer table:
- The table only reports unique paths from the Simulink model are reported.
- The table displays the 50 paths with the lowest Slack values with the worst Slack at the top, and increasing Slack below.
- Paths with timing violations have a negative Slack and display in red.
- The display order can be sorted for any column’s values by clicking the column head.
- To show/hide columns, click the Select
Columns button and select/deselect the column name as required.
- For a design with multiple clock cycle constraints, the Timing
Analyzer can identify multicycle path constraints, and show them in the
Path Constraints column. In
that case, the Source Clock,
and Destination Clock columns
display clock enable signals to reflect different sampling rates.
- You can cross probe from the table to the Simulink model. To do this, select a path in the table, which highlights the corresponding HDL blocks in the Simulink model. See Cross Probing from the Timing Analysis Results to the Model.