Example 2: User-Defined Pattern with Loop Command (START_LOOP, END_LOOP) - 1.0 English

AXI High Bandwidth Memory Controller v1.0 LogiCORE IP Product Guide (PG276)

Document ID
Release Date
1.0 English

The txn_count field allows you to easily repeat the command multiple times. If you need to loop more than one command, the START_LOOP/END_LOOP pair is used. In the following example, you need to send the AXI Read transactions to an address ('h0) and the next Read to address+offset ('h1000_0000), then wait for the Read data to arrive and repeat this step 100 (loop_count) times.

With the command START_LOOP, 100, incr_addr_by, 40 during each loop, you increment the address by 'h40. Hence the Read address (araddr) for consecutive transactions would be 'h0, 'h1000_0000, 'h40, 'h1000_0040 … and at the end of test 200 Read transactions are issued. You also have an option to send the reads to the same address (that is, 'h0, 'h1000_000, 'h0,'h1000_0000 …) by using the command START_LOOP, <loop_count>, use_original_addr. This command resets the address to the original address specified in the axi_addr column.

Looping in the Command Table of AXI-TG