Set TUSER AXI DMA Python

Hello,

I have made an IP in Vitis HLS and I am trying to verify the IP is working correctly using a Jupyter notebook on the PYNQ board. The inputs are sent and outputs are received using an AXI DMA IP. My HLS IPs depends on the TUSER signal of the AXI Stream interface. I can send all data using:

dma_send = overlay.axi_dma_0.sendchannel
dma_send.transfer(input_buffer)

But I also want to set the TUSER signal to 1 specifically for input_buffer[0]. How can I do this in Python?

Hi @RoyMeijer,

Welcome to the PYNQ community.

The AXI Direct Memory Access IP do not have TUSER side-band channel on the AXI4-Stream interfaces.

You can include a FIFO in the datapath and set the TUSER using an AXI GPIO. Something like this

You then can use the AXI GPIO object to set the value of TUSER from your Python code.

Mario

Thank you very much!