- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2011 05:12 PM
i have virtex 5 xc5vlx110t.
I have programmed the fpga.it showed me the message "program succeed".
I have done a simple example, my code reads the data from an input file and writes this data to another file. i have tesed the program with a testbench and it works correctly.
now i have programmed the fpga and i want the fpga to do this job, not the simulator.
what can i do?
Re: pass input values to a fpga
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2011 05:23 PM - edited 03-18-2011 05:23 PM
my code reads the data from an input file and writes this data to another file
This is a functional construct, not a hardware construct. A hardware construct would be:
Read/Write data to SPI flash memory (or SD card or SATA disk drive or ...)
I have programmed the fpga.it showed me the message "program succeed".
Does this mean you compiled your design and configured your FPGA with the code, using a USB Platform Cable and the IMPACT programming tool?
i have tesed the program with a testbench and it works correctly.
now i have programmed the fpga and i want the fpga to do this job, not the simulator.
I'm confused. Usually "it works correctly [in simulation]" means the design's function is verified. And "program succeeded" means the verified design has been loaded into actual hardware. This should mean that you are close to having a working design running on your hardware. What do you think is missing?
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2011 05:38 PM
Does this mean you compiled your design and configured your FPGA with the code, using a USB Platform Cable and the IMPACT programming tool?
yes
I'm confused. Usually "it works correctly [in simulation]" means the design's function is verified. And "program succeeded" means the verified design has been loaded into actual hardware. This should mean that you are close to having a working design running on your hardware. What do you think is missing?
yes, my design has been loaded in the hardware, but what should I do with my hardware, how can I make it work? what to do for my hardware to begin the job it has been prgrammed?
to the simulator I give the input values with a testbench. how can I pass the input values to my hardware.
it is the first time I do this, please help.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2011 05:47 PM
to the simulator I give the input values with a testbench. how can I pass the input values to my hardware.
it is the first time I do this, please help.
What is the data source (in real life)?
In what physical form does your "data file" exist ?
What is the physical connection of this "form" to your FPGA?
Once you have decided the manner and form this data is accessed by the hardware, your next job is to design hardware which will read this data and store or process the data as you see fit. This is all "hardware design".
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2011 05:57 PM
What is the data source (in real life)?
In what physical form does your "data file" exist ?
What is the physical connection of this "form" to your FPGA?
Once you have decided the manner and form this data is accessed by the hardware, your next job is to design hardware which will read this data and store or process the data as you see fit. This is all "hardware design".
the data source is an input file.
this file is in my computer.
I am confused with your answer.
how can i make my hardware start working?
Re: pass input values to a fpga
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2011 06:26 PM - edited 03-18-2011 06:33 PM
the data source is an input file.
this file is in my computer.
How do you think the data on your computer's hard disk is going to jump over to your FPGA?
If you don't know, this means you haven't finished designing your FPGA (of course!).
Are you using a development board? If so, what model?
Read through the user guide for this board, and make note of the communications ports which are available for use.
Examples:
- USB
- RS-232
- Ethernet (RJ-45)
- CompactFlash socket
If you intend to use USB, RS-232, or Ethernet you will likely need to write a software driver and/or application on your computer to fetch the file data from hard disk and send the data to the FPGA board.
Are you a student? If so, this is material which your instructor should cover in class, and you should solicit help and guidance from your instructor.
how can i make my hardware start working?
First things first -- you need to figure out what your hardware needs to do -- and how it will do it -- before you can design the hardware and get it running.
So far, your understanding seems to be at a very abstract level. When it comes to FPGA design, abstract design is only the very beginning of your work. To complete your design, you will need to translate your abstract understanding to wires, signal names, FPGA pins, logic values, data representation, and logic statements.
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-19-2011 09:23 AM
i am using virtex 5 xc5vlx110t.
I can not find the pin specifications for this board.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-20-2011 03:53 PM
joana wrote:
What is the data source (in real life)?
In what physical form does your "data file" exist ?
What is the physical connection of this "form" to your FPGA?
Once you have decided the manner and form this data is accessed by the hardware, your next job is to design hardware which will read this data and store or process the data as you see fit. This is all "hardware design".
the data source is an input file.
this file is in my computer.
I am confused with your answer.
how can i make my hardware start working?
How do you expect the data in your file on your computer to get to the FPGA?
----------------------------------------------------------------
Yes, I do this for a living.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-20-2011 04:02 PM
How do you expect the data in your file on your computer to get to the FPGA?
I like my wording better.
How do you think the data on your computer's hard disk is going to jump over to your FPGA?
Joana, you need to sit down with your course instructor and tell the instructor that you need to understand how the data gets from the computer to the FPGA.
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: pass input values to a fpga
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2011 04:16 AM
joana wrote:
i am using virtex 5 xc5vlx110t.
I can not find the pin specifications for this board.
That is not a board.
That is an FPGA.
------------------------------------------
"If it don't work in simulation, it won't work on the board."











