Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21615 Discussions

How to interface PC and FPGA through USB 2.0

Altera_Forum
Honored Contributor II
1,120 Views

I want to write a C++ code that will allow for the communication between a USRP board (a hardware device that is used for making Software Defined Radio. It captures the actual data on which modulation/demodulation in software on the PC has to be performed. The USRP does some processing on raw data such as analog to digital conversion, down conversion and decimation of data and throws it on a USB 2.0 port)and a PC. All of the high-speed general purpose operations like digital up and down conversion, decimation and interpolation are done on the Altera Cyclone EP1C12 FPGA on the USRP board. The FPGA, in turn, connects to a USB2 interface chip, the Cypress FX2, and on to the computer.  

 

I want to interface the DSP board and USRP board through USB 2.0. For this, I am initially trying to write a code in Windows, which I will later on implement on the DSP board with necessary modifications. Please suggest me how I should go about writing this C++ code?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
434 Views

Your starting point is the driver. Do you already have a software driver for your device? If not then I would recommend using libUSB for windows. The documentation is pretty good and I would expect you'd be able to get up and going reasonably quickly. 

 

Jake
0 Kudos
Reply