Cascade Stall Analysis - 2025.2 English - UG1076

AI Engine Tools and Flows User Guide (UG1076)

Document ID
UG1076
Release Date
2025-11-20
Version
2025.2 English
From Performance Metrics analysis, you can identify the cascade stall that needs to be analyzed.
  1. Select the Trace view.
  2. Select the Cascade Stalls view.
  3. Select a Cascade stall.
  4. The Cascade stall is highlighted in Trace view.
    Figure 1. Cascade Stall in Trace View

    Each cascade stall has the following information.

    NAME
    The name of the stream stall is CS_<NUM>. The earlier the stall happens, the smaller the number. The number is unique across all types of stall.
    Stalled Tile
    The AI Engine tile that contains the stalled kernel.
    Stalled Kernel
    The stalled kernel. It is named <Kernel_function_name>.<Schedule_ID>.<Graph_instance_name>. If it displays as _main, you need to cross-probe to find the real kernel function.
    Start (ps)
    The start time that the stall happens.
    Duration (ps)
    The duration of the stall.
    PC
    Program counter when the stall happens.
    Stalled Port
    The port of the stalled kernel.
    Related Stalls
    Other stalls that can cause the stall.
    Full Destination
    The port that the stalled kernel cannot write into because it is full.
    Empty Source
    The port that the stalled kernel cannot read from because it is empty.

    Use Trace view to explore cascade stalls and determine how they are related.

  5. It is possible that other types of stalls cause the cascade stall. Explore the other types of stalls to analyze why that happened. Related stalls in the Stalls view show which stall causes the cascade stall.
  6. Viewing the stalls happen in Graph view can help identify the cause of the stall. Select Graph view.
  7. Select Cascade Stalls view.
  8. Click the path in the Stalls view. This shows the stall path in red in the Graph view.
  9. Exploring the cascade stall and its related stalls, can help in finding a hint about the cause of the stall. Clicking Related Stalls can also show the related stall in red. For example, click SS_16 in Related Stalls to see the path in red, which gives a hint about where the stall starts.
    Figure 2. Cascade Stall in Graph View

The following table lists some possible scenarios that cause cascade stall and possible solutions.

Table 1. Cascade Stall Scenarios and Solutions
Source Destination Stall type Possible solution
Cascade Stream Cascade Stream Cascade Stall
  • Adjust cascade stream read/write instructions in kernel execution cycles to match between source and destination kernels
  • Analyze other sources that cause the cascade stall
Stream + Cascade Streams Stream + Cascade Streams Cascade Stall
  • Adjust instructions to match between different streams
  • Analyze other sources that cause the cascade stall