using UNIX Environment variables in "ncvlog -file option" - Help!

Status
Not open for further replies.

Srinivasan Venkataramanan

Usenet Archive
Joined
Jun 20, 2001
Messages
53
Reaction score
0
Hi,
I want to use

ncvlog -file ncvlog.args

where my ncvlog.args file contains:

// Options
-messages

// Files to be compiled
$ROOT/src/file1.v

// End

Now the problem is for some reason ncvlog doesn't like usage of UNIX Environment variables in this context (it says no such file and exits), I tried to look up in the cdsdoc but no avail. Is this possible? If not would cadence (TIA - Martin, if you happen to see this post) care to support this?

TIA,
Srinivasan
 
"Srinivasan Venkataramanan" wrote in
message
Hi,
I want to use

ncvlog -file ncvlog.args

where my ncvlog.args file contains:

// Options
-messages

// Files to be compiled
$ROOT/src/file1.v
...
Srini,

The -file is not a "documented" format and reading $ or ~ was not possible with XL. Reading environment variables and ~ would be useful and its already on the requirements list. Until then, you can alternatively use your $ROOT in the compile script;

#! /bin/sh -f
ncvlog $ROOT/src/file1.v -f ncvlog.args
ncvlog $ROOT/src/file2.v -f ncvlog.args

where ncvlog.args file contains:

// Options
-messages

OR if you don't want to use -file you can specify the same options in your hdl.var file,

DEFINE NCVLOGOPTS -messages -update -errormax 1 -linedebug DEFINE NCVHDLOPTS -messages -update -errormax 1 -linedebug DEFINE NCELABOPTS -messages -update -errormax 1 -status DEFINE NCSIMOPTS -messages -update -errormax 1 -status

Martyn
 
Srinivasan Venkataramanan wrote:

Hi,
I want to use

ncvlog -file ncvlog.args

where my ncvlog.args file contains:

// Options
-messages

// Files to be compiled
$ROOT/src/file1.v
...
Hi,

The problem is your use of environment variables in a file and not in shell. When you use an environment variable in a command line, the shell analyzes it and substitutes with the good value before the execution of the command. When this variable is in file, the shell can't do this substitution, and the variable is use just as it is.

Al
 
Hi Martyn,
Thanks for the timely response.

"Martyn Pollard" wrote:

"Srinivasan Venkataramanan" wrote
in
message
> Hi,
<SNIP>
>
Srini,

The -file is not a "documented" format and reading $ or ~ was not
possible

But what do you actually mean by -file is NOT a "documented" format, I do see it in cdsdoc for ncvlog, and it says it accepts "comments" as well! - just curious.

> Reading environment variables and ~ would be useful and its already
on the requirements list. Until then,

Any timeline for this? (again I know I can't wait for that, but just want to be aware).

Thanks again.

Regards,
Srini
 
"Srinivasan Venkataramanan" writes:

Hi,
I want to use

ncvlog -file ncvlog.args

Why not something like:

yourfilter < ncvlog.tmpl > ncvlog.args && ncvlog -file ncvlog.args

Where yourfilter is a small script written in your favorite scripting or programming language to subsitute the environment variables.

Petter
 
But what do you actually mean by -file is NOT a "documented" format, I do see it in cdsdoc for ncvlog, and it says it accepts "comments" as well! - just curious.
Just that its never been a published format. Your right in that it takes // as comments.

> Reading environment variables and ~ would be useful and its already
> on the requirements list. Until then,

Any timeline for this? (again I know I can't wait for that, but just want to be aware).
Is it a critical issue for you? Can you use the other method I suggested? Perhaps you can send me a list of all the features you would like to see added to NCSim and give them a priority. The tcl prompt arrow-key enhancement is already on the list.

Martyn

Thanks again.

Regards,
Srini
 
Status
Not open for further replies.

Latest threads

Back
Top