Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
joana
Posts: 5
Registered: ‎03-10-2011
0

pass input values to a fpga

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?

Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: pass input values to a fpga

[ Edited ]

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

SIGNATURE:
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.
Visitor
joana
Posts: 5
Registered: ‎03-10-2011
0

Re: pass input values to a fpga


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. 

 

Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: pass input values to a fpga

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

SIGNATURE:
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.
Visitor
joana
Posts: 5
Registered: ‎03-10-2011
0

Re: pass input values to a fpga

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?

Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: pass input values to a fpga

[ Edited ]

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

SIGNATURE:
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.
Visitor
joana
Posts: 5
Registered: ‎03-10-2011
0

Re: pass input values to a fpga

i am using virtex 5 xc5vlx110t.

I can not find the pin specifications for this board.

Expert Contributor
bassman59
Posts: 4,679
Registered: ‎02-25-2008
0

Re: pass input values to a fpga

 


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.
Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: pass input values to a fpga

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

SIGNATURE:
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.
Expert Contributor
rcingham
Posts: 2,010
Registered: ‎09-09-2010
0

Re: pass input values to a fpga

 


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."