03-07-2018 09:25 AM
I have to design an FPGA that will have to take some parameters from a computer.
I need to communicate with a FPGA via a computer to set the values of registers inside the FPGA.
The FPGA will have to deserialize a bitstream and the serializing factor depends on the configuration that is set by the computer.
Is it possible on the 7 series FPGA?
03-07-2018 09:32 AM
There are many paths, but probably the simplest is with a UART. you can use a CP2102 interface device that appears to the computer as a serial port (COM3, COM4, etc) while still using a USB cable. In the FPGA, a simple UART core can be added, either standalone with a finite state machine to interpret characters, or a microblaze design, running actual C code.
03-07-2018 02:42 PM
It's not the most elegant solution, but here's what we are doing at the moment. We have a program that can program an arbitrary waveform onto a function generator (we use a DS345). This is our serial data. The FPGA outputs a trigger over one digital IO, and receives the serial data over another digital IO. The "deserializer" is just a serial to parallel shift register on the FPGA, and I take the bits from the proper place in my deserialized bitstream and assign them to my reg values. Works fine at 100kHz.
03-08-2018 12:51 AM
Thanks i am going to use a 7 series FPGA, so to communicate with the PC using an UART there has to be an USB port on the FPGA right?