Data Transfer from PC to FPGA through USB

T

tabenash2002

Guest
Hallo guys,

I'm pretty new to hardware programming. I'm currently working on a projec
and I have to create a communication channel between my PC and FPGA (Xilin
Virtex 5 model) through a USB port.

At the end of the day, it should be able to use a matlab script to sen
data from PC to FPGA.

For example if I send 110000 from my PC, it should light some LEDs on m
FPGA.

I don't know how to establish this communication channel.

ANY HELP ?



---------------------------------------
Posted through http://www.FPGARelated.com
 
You might want to look into the HDL Verifier product which allows
FGPA-in-the-Loop simulation with a variety of popular FPGA boards over
Gigabit Ethernet. You can also use this product to co-simulate MATLAB
and an HDL simulator such as ModelSim from Mentor Graphics.

http://www.mathworks.com/products/hdl-verifier/description3.html

If you really need USB, I would look at the FTDI chipsets for serial
port emulation over USB. They are easy to use and readily available.

Disclaimer: I work as a developer for The MathWorks.

Good luck!

-Brian Ogilvie


----------------------------------------
"tabenash2002" <mtnyenty@n_o_s_p_a_m.yahoo.fr> writes:
Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
Newsgroups: comp.arch.fpga
Subject: Data Transfer from PC to FPGA through USB
Date: Tue, 10 Apr 2012 08:10:33 -0500
Hallo guys,

I'm pretty new to hardware programming. I'm currently working on a project
and I have to create a communication channel between my PC and FPGA (Xilinx
Virtex 5 model) through a USB port.
At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.
For example if I send 110000 from my PC, it should light some LEDs on my
FPGA.
I don't know how to establish this communication channel.

ANY HELP ?

---------------------------------------
Posted through http://www.FPGARelated.com
 
On Tue, 10 Apr 2012 06:37:45 -0700, johnp wrote:

On Tuesday, April 10, 2012 6:10:33 AM UTC-7, tabenash2002 wrote:
Hallo guys,

I'm pretty new to hardware programming. I'm currently working on a
project and I have to create a communication channel between my PC and
FPGA (Xilinx Virtex 5 model) through a USB port.

At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.

For example if I send 110000 from my PC, it should light some LEDs on
my FPGA.

I don't know how to establish this communication channel.

ANY HELP ?



--------------------------------------- Posted through
http://www.FPGARelated.com

You might take a look at FTDI interface chips. They have a variety of
solutions as does Cypress Semi.

You don't mention how much performance you need. Is it MB/sec or
KB/sec? That makes a huge difference to your approach. Also - USB2 or
USB3?

John P
FWIW, OpenCores lists a USB 1.1 and a USB 2.0 core. But the FTDI chip
comes with Windows drivers, which will vastly simplify your life, if your
prof will let you do it that way.

--
Tim Wescott
Control system and signal processing consulting
www.wescottdesign.com
 
On Tuesday, April 10, 2012 6:10:33 AM UTC-7, tabenash2002 wrote:
Hallo guys,

I'm pretty new to hardware programming. I'm currently working on a project
and I have to create a communication channel between my PC and FPGA (Xilinx
Virtex 5 model) through a USB port.

At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.

For example if I send 110000 from my PC, it should light some LEDs on my
FPGA.

I don't know how to establish this communication channel.

ANY HELP ?



---------------------------------------
Posted through http://www.FPGARelated.com
You might take a look at FTDI interface chips. They have a variety of solutions as does Cypress Semi.

You don't mention how much performance you need. Is it MB/sec or KB/sec? That makes a huge difference to your approach. Also - USB2 or USB3?

John P
 
On 10.04.2012 15:10, tabenash2002 wrote:
Hallo guys,

I'm pretty new to hardware programming.

At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.
Then make your life easy: use an usb -> parallel port adapter
(like http://www.amazon.de/Parallel-Centronics-Adapter-Druckerkabel-36pol/dp/B002CP8U3U )
and connect some of the data pins to the FPGA. A simple print in matlab to
the proper PRN port should be sufficient.
 
On 10.04.2012 15:10, tabenash2002 wrote:
Hallo guys,

I'm pretty new to hardware programming.

At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.

Then make your life easy: use an usb -> parallel port adapter
(lik
http://www.amazon.de/Parallel-Centronics-Adapter-Druckerkabel-36pol/dp/B002CP8U3
)
and connect some of the data pins to the FPGA. A simple print in matla
to
the proper PRN port should be sufficient.

Hallo Guys,

thanks alot for your contributions. I have done abit of research and i hav
the following information available:

I will be using a Virtex-5 lx50 Evaluation board, with USB controller fro
Cypress.


---------------------------------------
Posted through http://www.FPGARelated.com
 
On 04/10/2012 06:31 PM, Herbert Kleebauer wrote:
On 10.04.2012 15:10, tabenash2002 wrote:
Hallo guys,

I'm pretty new to hardware programming.

At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.

Then make your life easy: use an usb -> parallel port adapter
(like http://www.amazon.de/Parallel-Centronics-Adapter-Druckerkabel-36pol/dp/B002CP8U3U )
and connect some of the data pins to the FPGA. A simple print in matlab to
the proper PRN port should be sufficient.

Herbert,

The simplicity of this solution is brilliant!

Yours sincerely,
Rene
 
On Apr 24, 3:08 am, Rene <a...@b.c> wrote:
On 04/10/2012 06:31 PM, Herbert Kleebauer wrote:

On 10.04.2012 15:10, tabenash2002 wrote:
Hallo guys,

I'm pretty new to hardware programming.

At the end of the day, it should be able to use a matlab script to send
data from PC to FPGA.

Then make your life easy: use an usb ->  parallel port adapter
(likehttp://www.amazon.de/Parallel-Centronics-Adapter-Druckerkabel-36pol/d...)
and connect some of the data pins to the FPGA. A simple print in matlab to
the proper PRN port should be sufficient.

Herbert,

The simplicity of this solution is brilliant!

Yours sincerely,
Rene
My understanding is that the old parallel printer port is a 5V
signalling standard and apply this to a modern FPGA will result in
damage.

Ed McGettigan
--
Xilinx Inc.
 

Welcome to EDABoard.com

Sponsor

Back
Top