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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top