# RFSoC 4x2 How to generate square wave

**URL:** https://discuss.pynq.io/t/rfsoc-4x2-how-to-generate-square-wave/7111
**Category:** Support
**Created:** [June 6, 2024, 10:24am UTC](https://discuss.pynq.io/t/rfsoc-4x2-how-to-generate-square-wave/7111 "2024-06-06T10:24:59Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)
#### Post date: [June 11, 2024, 9:34am UTC](https://discuss.pynq.io/t/rfsoc-4x2-how-to-generate-square-wave/7111/4 "2024-06-11T09:34:40Z")

</div>

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

> [@Tutorial: PYNQ DMA (Part 2: Using the DMA from PYNQ)](https://discuss.pynq.io/t/tutorial-pynq-dma-part-2-using-the-dma-from-pynq/3134):
>
> PYNQ DMA tutorial (Part 2: Using the DMA from PYNQ) This tutorial shows how to use the PYNQ DMA class to control an AXI DMA in a hardware design. This is the second part of a DMA tutorial. [PYNQ DMA tutorial (Part 1: Hardware design)](https://discuss.pynq.io/t/pynq-dma-tutorial-part-1-hardware-design/3133) shows how to build the Vivado hardware design used in this notebook. All the source files for the tutorial are [hosted on a GitHub repository](https://github.com/cathalmccabe/PYNQ_tutorials/blob/master/dma) and this post is a Markdown version of a Jupyter notebook. The original notebook can be found in the GitHub repository [here](https://github.com/cathalmccabe/PYNQ_tutorials/blob/master/dma/dma_tutorial_part2.ipynb) …

You can do something like this [numpy - Plot Square Wave in Python - Stack Overflow](https://stackoverflow.com/a/66000563) and then pass the square wave to the `input_buffer`.

---

_[View the full topic](https://discuss.pynq.io/t/rfsoc-4x2-how-to-generate-square-wave/7111)._
