This topic is a continuation of the Deadlock Detection section and walks you through the visualization of the deadlock (Lock stall and stream stall) in the Vitis Analyzer.
After simulating with the
--hang-detect-time=60
option, open the trace analysis view -> aie_component -> AIE SIMULATOR/HARDWARE -> Run-aie_component -> Trace.Expand the
data_shuffle
kernel function. It ran for only two iterations and went into a stream stall.Expand the
peak_detect
kernel function, and observe the lock stall after three iterations.The kernel
data_shuffle
expects more stream data from the kernelpeak_detect
which it cannot provide. So, the stream port in thedata_shuffle
went into the stream stall, and the kernel hangs. It cannot accept more inputs from buffer port which causes the back pressure onpeak_detect
kernel leading to lock stall, which is the potential root-cause for the deadlock.