Step 3: Using ILA Advanced Trigger Feature to Trigger on an AXI Read Transaction - 2024.1 English

Vivado Design Suite Tutorial: Programming and Debugging (UG936)

Document ID
UG936
Release Date
2024-06-12
Version
2024.1 English
  1. In the ILA – hw_ila_1 dashboard, locate the Trigger Mode Settings area and set Trigger mode to ADVANCED_ONLY.
  2. In the Capture Mode Settings area, set the Trigger position to 512.
  3. In the Trigger State Machine area, click the Create new trigger state machine link.

  4. In the New Trigger State Machine File dialog box, set the name of the state machine script to txns.tsm.

  5. A basic template of the trigger state machine script is displayed in the Trigger State Machine gadget. Expand the trigger state machine gadget in the ILA dashboard. Copy the following script after line 17 of the state machine script and save the file.
    # The "wait_for_arvalid" state is used to detect the start 
    # of the read address phase of the AXI transaction which
    # is indicated by the axi_arvalid signal equal to '1'
    #
    state wait_for_arvalid:
        if (design_1_i/system_ila_0/U0/net_slot_0_axi_arvalid == 1'b1) then
          goto wait_for_rready;
        else
          goto wait_for_arvalid;
        endif
    #
    # The "wait_for_rready" state is used to detect the start 
    # of the read data phase of the AXI transaction which
    # is indicated by the axi_rready signal equal to '1'
    #
    state wait_for_rready:
      if (design_1_i/system_ila_0/U0/net_slot_0_axi_rready == 1'b1) then
        goto wait_for_rlast;
      else
        goto wait_for_rready;
      endif
    
    #
    # The "wait_for_rlast" state is used to detect the end 
    # of the read data phase of the AXI transaction which
    # is indicated by the axi_rlast signal equal to '1'.
    # Once the end of the data phase is detected, the ILA core
    # will trigger.
    #
    state wait_for_rlast:
      if (design_1_i/system_ila_0/U0/net_slot_0_axi_rlast == 1'b1) then
        trigger;
      else
        goto wait_for_rlast;
      endif
    Note: Use the state machine to detect the various phases of an AXI read transaction:
    • Beginning of the read address phase
    • Beginning of the read data phase
    • End of the read data phase
  6. Arm the trigger of the ILA by right-clicking the hw_ila_1 core in the Hardware Manager window and selecting Run Trigger.

  7. In the Trigger Capture Status window, the ILA core waits for the trigger to occur and that the trigger state machine is in the wait_for_a_valid state.
    Note: The pre-trigger capture of 512 samples are completed successfully.


  8. In the Tcl Console, run the read transaction you set up in the previous section of this tutorial.
    run_hw_axi $rt
    Note: The ILA core has triggered, and the trigger mark is on the sample where the axi_rlast signal is equal to '1', as the trigger state machine program intended.