verilog ('include) problem

Status
Not open for further replies.

swapnil_vlsi

Full Member level 1
Joined
Jul 18, 2007
Messages
95
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,900
Hoe the file inclusion ( `include ) compiler directive is used to insert the entire contents of a source file in another file during compilation.i.e. The result is the contents of the included source file appear in place of the `include compiler directive.IS the `include compiler directive can be used to include global or commonly used definitions and tasks without encapsulating repeated code within module boundaries.
suppose i wrote one file name "swapnil_user_constants.v" ... and this file to be included in "swapnil_constants.v"as

`include "swapnil_user_constants.v"

but while checking syntex in Xilinx it shows error like such file does not exist...
how can i include such file
can any body tell me
 

In the Xilinx project manager, go the menu: Process -> Properties

Then do this:
1) Click the category 'Synthesis Options'
2) Now, near the bottom-right of the window, change
'Property display level' -> Advanced

3) Inside the 'Property Name' scroll-box,
look for table-entry "Verilog Include Directories"
Change this to the correct path (i.e. location of your `include files)
 

I Gone through the steps you have told....

1)Right Click on 'Synthesis Options' then i entered to properties
2) Now, near the bottom-right of the window, change
'Property display level' -> Advanced

3) Inside the 'Property Name' scroll-box,
look for table-entry "Verilog Include Directories"
Change this to the correct path (i.e. location of your `include files)
which file to be included there i m gating
1)_projnav
2)_xmags
3)xst->work->vlg3c......

i tried all the way but still it shows an error
Could not find include file 'file name.v'



if i hav to include more then one file then what can i do????
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…