In the Intel Agilex® 3 TG2 Toolkit, under the Instruction Pattern tab, you can set the Loop Count parameter to 0, which will run the traffic generator in infinite test mode. In addition, a button in the Intel Agilex® TG2 Toolkit will appear to allow you to stop this traffic anytime. Otherwise, the pattern will continue to run indefinitely.
If you are using custom logic to drive the configuration interface and running traffic infinitely, write a “0” to TG_LOOP_COUNT (symbol address 0x8) and a “1” to TG_START (symbol address 0x4). To force user traffic to stop when running infinitely, write a non-zero value to TG_LOOP_COUNT (symbol address 0x8).