[verilog] `include with path, relative to user home directory

Status
Not open for further replies.

bene_

Newbie level 6
Joined
May 27, 2010
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
germany
Visit site
Activity points
1,352
Hello,

I'm relatively new to Verilog and have a question about the `include directive.
Is it somehow possible to use ~/ in the path? It was not possible for me to make it work. I need to use the ~ and cannot use /home/<username>/ because it should work on different user accounts with local files.
 

The traditional method was to use only the filename and let the toolflow set the searchpath to find it. This worked fine until about 10 years ago when design size and complexity became overwhelming. Calling your defines file "defines.v" works great until two or three other designers on your chip do the same thing.

Today the best solution is for the toolflow to run each individual component thru a verilog preprocessor before loading them into the SOC. Your search path is tiny and you never have to worry about namespace collisions in the `tic namespace.
 

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