RFSoC 4x2 How to generate square wave

You can see how to use the DMA for data transfer here:

You can do something like this numpy - Plot Square Wave in Python - Stack Overflow and then pass the square wave to the input_buffer.