UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
6,674 Views
Registered: ‎12-29-2009

How can I export the data from FPGA?

I have programmed a algorithm with VHDL. I want to export the data from FPGA to PC in order to verify the algorithm.

Is the textio library helpful? If textio is usefull,can you give me some documents about that.Is there any shortcut to export the data?

0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
6,669 Views
Registered: ‎08-13-2007

Re: How can I export the data from FPGA?

I generally only use textio for testbenches. That said, it is supported in some cases for synthesizable code, but likely not as you are imagining... You can read from a file during synthesis (e.g. to initialize BRAM) or write to the log file. Additional details are available in the XST User Guide. It will not however magically provide you an interface for exporting data from a running system.

 

Getting the data out of the FPGA will require some type of interface, including JTAG (e.g. Chipscope or SysGen HW co-sim), UART, Ethernet, PCIe, LEDs, etc. They all have different trade-offs in terms of complexity, performance, host software, etc.

 

Picoblaze/kcpsm3 is a common way for some designs to get data out to a PC. There are a number of examples in the S3E starter kit and S3A/AN starter kit reference designs...

 http://www.xilinx.com/products/boards/s3estarter/reference_designs.htm (Spartan-3E Starter Kit Board Design Examples)
http://www.xilinx.com/products/boards/s3astarter/reference_designs.htm (Spartan-3A/3AN Starter Kit Board Design Examples)

 

But there are many other ways.

 

bt

0 Kudos
Contributor
Contributor
6,637 Views
Registered: ‎12-29-2009

Re: How can I export the data from FPGA?

Thanks for your reply ,sir. Could you give me some documents or reference about the way how to export the data out? The web link is also grateful. 
0 Kudos
Historian
Historian
6,611 Views
Registered: ‎02-25-2008

Re: How can I export the data from FPGA?


goodspeed2009 wrote:
Thanks for your reply ,sir. Could you give me some documents or reference about the way how to export the data out? The web link is also grateful. 

Uhh, he DID give you some links.

----------------------------Yes, I do this for a living.
0 Kudos
Contributor
Contributor
6,480 Views
Registered: ‎12-29-2009

Re: How can I export the data from FPGA?

You are right,sir. But that is not what I want. I need some data about how to export the data from FPGA to PC.
0 Kudos
Xilinx Employee
Xilinx Employee
6,477 Views
Registered: ‎08-13-2007

Re: How can I export the data from FPGA?

All of the methods I mentioned above are used to export data from the FPGA.

Did you review the S3ESK and S3ASK reference designs? Many of them use a serial port, which is likely the simplest method to get started.

 

 

There are many approaches here:

http://www.xilinx.com/support/documentation/application_notes.htm (Application Notes)

And other board reference designs (e.g. ML50x), e.g.

http://www.xilinx.com/products/boards/ml501/reference_designs.htm


The applicable approaches vary based on your requirements and design parameters.

 

bt

Message Edited by timpe on 03-02-2010 12:49 AM
0 Kudos