01-28-2010 07:41 PM
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?
01-28-2010 09:41 PM
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.
01-30-2010 05:36 PM
02-02-2010 08:59 AM
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.
03-01-2010 07:49 PM
03-01-2010 09:48 PM - edited 03-01-2010 09:49 PM
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.
The applicable approaches vary based on your requirements and design parameters.