When the Vivado Hardware Session successfully connects to the SP701 board, you see the information shown in the following figure:
Select the Settings - hw_ila_1 tab and set the Trigger Mode Settings as follows:
Set Trigger mode to TRIG_IN_ONLY.
Set TRIG_OUT mode to TRIG_IN_ONLY.
Under Capture Mode Settings, ensure that Trigger position in window is set to 512.
Arm the ILA core by clicking the Run Trigger button.
This arms the ILA. You should see the status “Waiting for Trigger” in the Status - hw_ila_1 tab as shown in the following figure.
In the Vitis software platform Debug window, click MicroBlaze #0 and then click the Continue button .
The code will execute until the breakpoint set on line 24 in testperiph.c
file is reached. As the breakpoint is reached, this triggers the ILA, as shown in the following figure.
This demonstrates that when the breakpoint is encountered during code execution, the MicroBlaze triggers the ILA that is set up to trigger. This way you can monitor the state of the hardware at a certain point of code execution.