fpga advantage, how to handle include file?

C

Chao

Guest
Anyone had used FPGA advantage with source code like

'include "../rtl/test_include.v"

even I added file test_include.v into the project, FPGA advantage still
can not find the parameters in the source code. It gives a bunch of
errors like

** Error: C:/test/chip2/user_io.v(59): (vlog-2163) Macro `dd_width is
undefined.
etc.


Anyone has experience on this? Thanks.
 
Chao wrote:
Anyone had used FPGA advantage with source code like

'include "../rtl/test_include.v"

even I added file test_include.v into the project, FPGA advantage still
can not find the parameters in the source code. It gives a bunch of
errors like

** Error: C:/test/chip2/user_io.v(59): (vlog-2163) Macro `dd_width is
undefined.
etc.


Anyone has experience on this? Thanks.
It seems like different tools use different starting points for the
path. You could use an absolute path, just to make sure the `include is
working. You probably want a relative path so you might have to
experiment to figure out where the start of the search path is. Some
tools also allow you to specify a set of paths to search for `include
files. -Kevin
 
Kevin Neilson wrote:
Chao wrote:
Anyone had used FPGA advantage with source code like

'include "../rtl/test_include.v"

even I added file test_include.v into the project, FPGA advantage
still can not find the parameters in the source code. It gives a bunch
of errors like

** Error: C:/test/chip2/user_io.v(59): (vlog-2163) Macro `dd_width is
undefined.
etc.


Anyone has experience on this? Thanks.

It seems like different tools use different starting points for the
path. You could use an absolute path, just to make sure the `include is
working. You probably want a relative path so you might have to
experiment to figure out where the start of the search path is. Some
tools also allow you to specify a set of paths to search for `include
files. -Kevin
Thanks! Kevin
I tried absolute path, it works. I can not get around this by using
relative path, since I need ISE and modelsim both work. They are in the
different directories, that cause the starting points are different. So,
currently, absolute path might be the only solution in this situation.
Best regards,
Chao
 

Welcome to EDABoard.com

Sponsor

Back
Top