Packet Stream-based AI Engine kernels allow fine-grain control over how packets are generated and consumed in the kernels. This section explains how to code AI Engine kernels with packet stream interfaces (input_pktstream
and output_pktstream
). The connection in the graph is also described.
The PL side and PS side of this example is the same as Window Based AI Engine Kernels. Refer to:
Packet Format
Example PL Kernels for Packet Switching
Example PS code for Packet Switching