Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

need for NC-Verilog Help!!

Status
Not open for further replies.

Wenf.Yeh

Junior Member level 3
Joined
Aug 21, 2007
Messages
28
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,283
Activity points
1,475
libvpi.so

I want to use the NC-Verilog to generate a backward SAIF file for the PowerCompiler.
so I must add a number of PLI functions which are integrated in libvpower.so into my testbench

in the command line I wrote that:

setenv LD_LIBRARY_PATH /tools/.../.../vpower :$LD_LIBRARY_PATH
ncelab ........ -loadpli1 libvpower:read_rtl_saif.read_rtl_saif


but when I run the command ,the terminal echoes:
Failed to load dynamic library libvpower
ld.so.1: ..............................fatal : libvpower.so:eek:pen failed no such file or directory


I have checked the path of libvpower.so ,and it was there.
I'm confused !!
any one can help me?
 

libpli.so

Don't do it in the command line, try adding it in your .cshrc
 

libvpi.so: cannot open shared object file

Perhaps , you should set path of lib*.so for your simualation.
 

saif ncverilog

check whether u have -access +rwc switch in your ncelab command else it cannot open the file specified.
Also check whether u r using kshell mode as u r using setenv.
for bash u need to use export command.
 

libvpi.so ncsim

thx -all !!

my command line was written as follows:
#!/bin/csh -f
setenv LD_LIBRARY_PATH /tools/synopsys/syn/auxx/syn/power/vpower/lib-sparcOS5:$LD_LIBRARY_PATH

/tools/cds/IUS57/tools/bin/ncvlog -work worklib \
-cdslib /home/multi/ywf/simulation/nc/counter_pli/rtl/cds.lib \
-logfile ncvlog.log \
-errormax 15 \
-update \
-linedebug \
/home/multi/ywf/simulation/nc/counter_pli/rtl/counter4.v \
/home/multi/ywf/simulation/nc/counter_pli/rtl/testbench.v

/tools/cds/IUS57/tools/bin/ncls -all

/tools/cds/IUS57/tools/bin/ncelab -work worklib \
-cdslib /home/multi/ywf/simulation/nc/counter_pli/rtl/cds.lib \
-access +rwc \
-loadpli1 \
libvpower:read_rtl_saif,set_toggle_region,toggle_start,toggle_stop,toggle_report.read_rtl_saif,set_toggle_region,toggle_start,toggle_stop,toggle_report \
-logfile ncelab.log \
-errormax 15 \
-access +wc \
worklib.testbench

/tools/cds/IUS57/tools/bin/ncls -all

/tools/cds/IUS57/tools/bin/ncsim -input /home/multi/ywf/simulation/nc/counter_pli/rtl/command.tcl \
-cdslib /home/multi/ywf/simulation/nc/counter_pli/rtl/cds.lib \
-logfile ncsim.log \
-errormax 15 \
-status worklib.testbench

but output was :
ncelab: 05.70-s001: (c) Copyright 1995-2006 Cadence Design Systems, Inc.
SYSTEM ERROR: VPI LOADFL
Failed to load dynamic library libvpower
ld.so.1: /tools/cds/IUS57/tools.sun4v/inca/bin/ncelab: fatal: libvpower.so: open failed: No such file or directory
$read_rtl_saif("counter_rtl_fw.saif");
|
ncelab: *E,NOTSYT (./testbench.v,22|19): Unrecognized system task or function (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)].
If item was defined in a shared-object library, the problem could be:
ld.so.1: /tools/cds/IUS57/tools.sun4v/inca/bin/ncelab: fatal: libvpi.so: open failed: No such file or directory
ld.so.1: /tools/cds/IUS57/tools.sun4v/inca/bin/ncelab: fatal: libpli.so: open failed: No such file or directory.
$set_toggle_region(testbench.M2);
|
ncelab: *E,NOTSYT (./testbench.v,23|23): Unrecognized system task or function (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)].
$toggle_start;
|
ncelab: *E,NOTSYT (./testbench.v,24|18): Unrecognized system task or function (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)].
#1000 $toggle_stop;
|
ncelab: *E,NOTSYT (./testbench.v,25|23): Unrecognized system task or function (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)].
$toggle_report("counter_rtl_bw.saif",1.0e-9,"testbench.M2");
|
ncelab: *E,NOTSYT (./testbench.v,26|19): Unrecognized system task or function (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)].
 

libvpi.so path

Hi,

I am getting the same type of Error :

SYSTEM ERROR: VPI LOADFL
Failed to load dynamic library /home/libccode_sh
libccode_sh.so: undefined symbol: sem_init
ncelab: *F,SCILDD: Could not load SystemC model library /home/libccode_sh.so (/home/libccode_sh.so: undefined symbol: sem_init).
ncverilog: *E,ELBERR: Error during elaboration (status 2), exiting.
ncsc_run: *E,TBSIMF: ncverilog returned non-zero exit status
make: *** [build_simulator] Error 1

Build execution time = 0:02:11

Please reply if anyone has resolved this type of error.
 

libvpi ncverilog

@Wenf.yeh , see if the information below helps you fix the error.


ncelab: *E,NOTSYT reporst libgcc_s.so.1 is missing

Error Message:
$hello;
|
ncelab: *E,NOTSYT (./test.v,5|10): Unrecognized system task or function (did not
match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)].
If item was defined in a shared-object library, the problem could be:
ld.so.1: ncelab: fatal: libvpi.so: open failed: No such file or directory
ld.so.1: ncelab: fatal: libgcc_s.so.1: open failed: No such file or directory.

Problem statement:
When trying to link the pli with the verilog code user gets the above error at the
ncelab stage.
The shared object library is created using gcc.
For example:
> gcc -shared -o libpli.so -fpic -g veriuser.o pli.o

Note: Here 'veriuser.o' and 'pli.o' are the object files.

Solution:
To resolve the above error please add the following path to the LD_LIBRARY_PATH:
/<install_dir>/tools/systemc/gcc/install/lib

the clue here was to add to the search path the location of libgcc_s.so.1.
Your local environment may include other locations your company uses instead,
buy the above location is delivered with the IUS tool stream for gcc users.
 

nc verilog elaboration error

Look for the new irun command to simplify this PLI integration issues, I believe CDN has documentation on this new use model.

If you still need help, consider posting at cdnusers.org or send to CDN support.

HTH
Ajeetha, CVC
www.noveldv.com
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top