- status: open --> open-fixed
I have the following problem. For a tool (e.g. cadence
simulators, I
have a specific documentation for ncsim/ncvhdl
and another for
ncverilog). All these tools are registered
under one tool-dir (ncsim).
What I now wanted to do, is to
use some kind of if-clause in the ap-
docstart.pl to start
up the proper documentation.
E.g. I had
put in ap-docstart.pl the following
if
($ENV{APVSYS_TARGET} =~ /ncverilog/ ) {
system
("/ap/tools/bin/acroread
$ENV{TOOLPATH}/$ENV{CHOSENTOOL}/doc/ncvlog/ncvlog.pdf
&");
} else {
system
("/ap/tools/bin/acroread
$ENV{TOOLPATH}/$ENV{CHOSENTOOL}/doc/ncvhdl/ncvhdl.pdf
&");
}
The purpose was that if I give
apv -d ncverilog -> I get
the ncverilog documentation
and if I give
apv -d ncsim -> I get
ncvhdl documentation
However, this does not
work.
When checking the environment variables, I see that
TOOLPATH is ok (/ap/toolstorage/...)
CHOSENTOOL is ok (
ncsim/v3.3s10 )
APVSYS_TARGET is NOT OK ( apv )
If
APVSYS_TARGET would show you "ncverilog" then I could
build
a decision on it, but this is not the case.
Can this be
updated, or another variable be defined
(e.g.
CALLED_COMMAND)
Koen