A Verilog VPI problem

Status
Not open for further replies.

eruisi

Member level 4
Joined
Jan 3, 2006
Messages
71
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
CA
Activity points
1,817
xxtern

I am using ncverilog (LDV4) to run a simulation with VPI functions (loadvpi option) but get the following errrors:

ncsim: relocation error: ./libvpi.so: undefined symbol: vpi_get_userdata

I checked vpi_get_userdata prototype in vpi_user.h:
XXTERN void *vpi_get_userdata PROTO_PARAMS((vpiHandle obj));

two places in my VPI codes call this funcion:
arg_array = (vpiHandle *)vpi_get_userdata(systf_h);

I couldn't find anything wrong in calling.

Could someone help me out?
 

ncsim libvpi.so

Hi,
Can you show the exact gcc, ncverilog command lines?

eruisi said:
I am using ncverilog (LDV4) to run a simulation with VPI functions (loadvpi option) but get the following errrors:

ncsim: relocation error: ./libvpi.so: undefined symbol: vpi_get_userdata

I hope you are running on same OS - meaning that the SO file created is for Linux and you are running NC on Linux.

[quote[
I checked vpi_get_userdata prototype in vpi_user.h:
XXTERN void *vpi_get_userdata PROTO_PARAMS((vpiHandle obj));

two places in my VPI codes call this funcion:
arg_array = (vpiHandle *)vpi_get_userdata(systf_h);

I couldn't find anything wrong in calling.

Could someone help me out?[/quote]

Is it only to do with this function or for all other VPI calls as well? Is it possible that you comment these 2 calls and see what happens? Idea is to corner down if it is some issue with just this vpi_get_userdata or generic linking issue.

Also try posting in cdnusers.org, it is monitored by CDN support guys as well.

Regards
Ajeetha, CVC
www.noveldv.com
 

what is vpi simulation

Hello,
Your Linking is not proper. Can u plz do a ldd on your .so file and tell it ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…