To use external traffic generators for any kind of simulation, you need to make modifications to the graph code, specifically the
graph.h file. This file contains the PLIO constructors, which are used to connect the graph to the programmable logic.
Notice that the
#ifdef EXTERNAL_IOis used and the lines of code under it do not have the data file in the PLIO constructors. This is needed for the external traffic generator to work properly, because the data file (seen on lines 85 to 88) take precedence.
Take note of the names (first argument) of the PLIO constructors. These will be used to hook up the external traffic generators.
Note: Code guarding this is optional. It is used in this instance to show the changes needed. These modifications are simple. Remove the filenames of the test vectors, and the simulator (AI Engine or x86) automatically takes responsibility for creating ports to connect Unix sockets.