Here is the list of AI Engine specific APIs and their usage in integrating the
traffic generators. With the Python API you can create the traffic generator code to
generate data to pass into or collect data from your AI Engine graph. Use the following API to instantiate objects
to send and receive data. You can provide any datatype vector/list to send_data
or receive_data
.
- Instantiating Classes to Send or Receive Data
-
aie_input_plio( name, datatype) aie_output_plio(name, datatype)
- send_data()
-
send_data(data, tlast) creates a non-blocking call to send data
- receive_data()
-
receive_data() creates a blocking call to receive data
- receive_data_with_size()
-
receive_data_with_size(data_size) creates a blocking call to receive a specified amount of data
- receive_data_on_tlast()
-
receive_data_on_tlast() creates a blocking call returning data after receiving tlast packet