linking vcs with pli with different pathname

M

Monika Talwar

Guest
hi all,
I have a query regarding the linking of pli to the vcs.

I know the criteria to link the pli with vcs. But my problem is to
link it with the pli routine that resides in some other location

my pli files reside in /home/monika/pli_files directory.
and my verilog code resides in home/monika/verilog_code directory

I have given the command as

[monika@monika verilog_code]$vcs -P ../pli_files/pli.tab
.../pli_files/libpli.so my_sample_code.v

The pli get linked with verilog code.
But I dont want to specify the pathname of the pli files on command
line.


there is an environment variable LD_LIBRARY_PATH that works for NC
Does there exist any environment variable for vcs to make the things
better?

Thanks in advance
Monika
 
monikatalwar@hotmail.com (Monika Talwar) writes:

But I dont want to specify the pathname of the pli files on command
line.
Why not? If it's too much to type you should put all the commands into
a little script and just run that.

there is an environment variable LD_LIBRARY_PATH that works for NC
Does there exist any environment variable for vcs to make the things
better?
LD_LIBRARY_PATH is used to locate dynamic libraries at runtime, i.e.
after a program has been linked. You need to specify the location of
the library during link time. You could make your own variable and use
something like -P $MYTAB $MYLIB, but it would be easier to wrap it up
in a script.

Petter
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 

Welcome to EDABoard.com

Sponsor

Back
Top