- Invoke Vitis Model Composer.
- On Windows systems select .
- On Linux systems, type
model_cpomposer
at the command prompt.
- Navigate to the Lab3 folder: \HDL_Library\Lab3.
You can view the directory contents in the MATLABĀ® Current Folder browser, or type
ls
at the command line prompt. - Open the Lab3 design using one of the following:
- At the MATLAB
command prompt, type
open Lab3.slx
- Double-click Lab3.slx in the Current Folder browser.
The Lab3 design opens, as shown in the following figure.
- At the MATLAB
command prompt, type
- From your Simulink project worksheet,
select or click the Run simulation button to
simulate the design.Note: In order to see accurate results from Resource Analyzer Window it is recommended to specify a new target directory rather than use the current working directory.
- Double-click the System Generator token to open the Properties Editor.
- Select the Clocking tab.
- From the Perform analysis menu, select Post
Synthesis and from Analyzer type menu select Timing as shown in the following figure.
- In the System Generator token dialog box,
click Generate.
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 or Post 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.
- Model Composer processes the timing information and displays a Timing Analyzer table with timing paths information as shown in the following figure.
- In the timing analyzer table:
- Paths with lowest slack values display, with the worst Slack at the top and increasing slack below
- Paths with timing violations have a negative slack and display in red.
- Cross probe from the Timing Analyzer table to the Simulink model by clicking any path in the Timing Analyzer table, which highlights the corresponding Model Composer HDL blocks in the model. This allows you to troubleshoot timing violations by analyzing the path on which they occur.
- When you cross probe, you see the corresponding path as shown in the following figure.
- Blocks with timing violations are highlighted in red.
- Double-click the second path in the Timing Analyzer table and cross-probe,
the corresponding highlighted path in green which indicates no timing
violation.