Python input to FPGA communication

Hello, I am looking to create a system where I have a program in python running on my PC, and the user input (single bit) needs to be sent to the pynq-z2 board to be the input for my design. How can this be realised?

This is what PYNQ is doing. Jupyter notebooks are accessed in a browser from your host PC, and execute code on the board.
Every example notebook on the board is behaving in this way.
Have you tried using PYNQ or any of the example notebooks?


I did look into it. But what I am looking for is to have a desktop application through which I can select the data that is being sent to the FPGA and receive some data back.

OK. I’d suggest you look into Python socket programming. There may be other ways better suited to what you want, but this should be straightforward.
You should be able to search the internet for examples how to do this.


Okay. But I am wondering if we can have a client socket in VHDL? I can make a socket server on my PC but the client to which I have to send data is my FPGA. So how do I connect to my server?

The socket server would run on the ARM processor on the PYNQ-Z2. You could use PYNQ for the application on the board controlling your design in programmable logic.


So, basically, I send data from my PC to PYNQ through the socket, and from there on, it is passed to my programmable logic? Is that right?