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 Synthesis
orPost Implementation
based on the runtime versus accuracy tradeoff. Post Synthesis timing will be less accurate but run faster, while Post Implementation timing will be more accurate but run 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 Synthesis
orPost Implementation
), the design runs in Vivado through synthesis or through implementation. - After the Vivado tools run is completed, timing paths information is collected and saved 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:
- Only unique paths from the Simulink model are reported.
- The 50 paths with the lowest Slack values are displayed 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 by selecting a path in the table, which will highlight the corresponding HDL blocks in the Simulink model. See Cross Probing from the Timing Analysis Results to the Model.