The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> AMS Simulators >> Include file with relative path
https://designers-guide.org/forum/YaBB.pl?num=1227685766

Message started by IJnte on Nov 25th, 2008, 11:49pm

Title: Include file with relative path
Post by IJnte on Nov 25th, 2008, 11:49pm

Dear All,

At this moment we have created a include file which contains all sorts of Tasks. The file looks like this:

Code:
task dothis;
....
endtask

task dothat;
....
endtask

If i want to include this to my project file, i will have to include the file after the module's header:

Code:
module Test(in, out);
`include "/home/ijnte/Desktop/VerilogAMS/tasks.vams"
....

Within the include statement quotes, i need to fill in the absolute path to the file that needs to be included.
Is there a way to use an relative path with linux variabels (or SKILL variable) in stead of the absolute path? So something that looks like this:

Code:
`include "${HOME}/tasks.vams"

Where home is specified as "/home/ijnte/Dekstop/VerilogAMS"

I would like to work with an relative path, because i can store this file within the Cadence environment, so everyone can use and acces the file.
Maybe somebody has another idea, how to make this include file available for everyone. It should be placed on a default location, but a the path to this location is not fixed (it could be /workspace/user1/technology or /workspace/user2/technology)

An other option is to attach it to each library, but this is a very time consuming job :)

Thank you all in advance!

Gr IJnte

Title: Re: Include file with relative path
Post by Andrew Beckett on Jan 5th, 2009, 6:49am

In ADE this is under Simulation->Options->Compiler: Include Path.
If using OSS netlisting (rather than cell-based), it's under Simulation->Options->irun then in the Compiler Options button at the bottom of the form.
If using the Hierarchy Editor plugin flow, it's under Options->Compiler->Verilog-AMS->Macros/Includes .

It corresponds to the -INCDIR argument to ncvlog.

Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.