packet_sender - 2023.2 English

Vitis Tutorials: AI Engine (XD100)

Document ID
Release Date
2023.2 English

After m2s_x2 kernel loads i data onto an AXI-Stream, the istrm is the input to the packet_sender kernel. The packet_sender kernel takes raw i data and packetizes it for the AI Engine. Review the kernel/packet_sender.cpp definition. The packet_sender does the following:

  • generates a header AXI-Stream packet

  • reads the rx stream

  • writes 224 AXI-Stream data packets to one of the 100 tx streams

  • asserts TLAST appropriately on the last data packet

It repeats these actions so all 100 tx streams have a packet header and 224 data packets written to it. This is 1 iteration of data the AI Engine is expecting. The 100 tx streams are connected to the 100 input_i ports on the AI Engine.