Understanding Python - 2023.2 English

Vitis Tutorials: AI Engine (XD100)

Document ID
XD100
Release Date
2024-03-05
Version
2023.2 English

The following diagram illustrates the connections between the several steps required to interact with the traffic generators.

  1. For this tutorial, the user data generator will be a complex sine wave.

  2. You will convert it to a byte array.

  3. Handle the AXI transactions.

  4. Pass the data to the XTLM python

    1. XTLM will pass data to the AIE array

    2. XTLM AXIS Slave will capture the output data

    3. Capture the data in the rx_from_aie thread()

    4. Pass the data to the parent thread via a pipe

  5. Convert to byte to array numpy.

  6. Plot the data.

Alt Text

Regardless of the PLIO width the AXI Traffic Master and Slave both operate on a python bytes-like object. Numpy arrays can be either real or complex valued and have a convenient built-in method called “tobytes()” that makes interacting with the ipc_axis_master_util/slave_util very straightforward.