Jump to content
Sign in to follow this  
felixsh

ncsim: Unable to load the default library libdpi

Recommended Posts

Hello,

We have an error in Cadence with UVM compilation of Hello World example,

ncsim: *F,NOLWSV: Searching for import subroutine "uvm_hdl_deposit" in default library libdpi. Unable to load the default library libdpi

Can you help us with solving the problem?

Share this post


Link to post
Share on other sites

Hello, I'm not sure what issue you are having without more details. Can you let us know which version of IUS you are running? Also - if you have set UVM_HOME to something? The easiest way to run is to try this:

% irun -uvm hello_world.sv

Does that work?

Kathleen

Share this post


Link to post
Share on other sites

this only happens if you compile in the old 3step mode (ncvlog/ncelab/ncsim) and you miss to supply the shared libraries (either the precompiled libuvmdpi.so, libuvmpli.so) or if you compile the dpi code yourself and forgot the -sv_lib ..../yourlib.so

(btw the right set of switches are in another post here in the forum, search for "loadpli")

much simpler is the invocation using "irun -uvmhome <your-uvm> ...."

/uwe

Share this post


Link to post
Share on other sites

Hello,

 

I am using the 3step mode (ncvlog/ncelab/ncsim). I am also getting this same error. I understood the addition of the precompiled libuvmdpi.so. I am not adding the libuvmdpi.so because I am compiling the full source code of "uvm_pkg" .  Is it mandatory to add the libuvmdpi.so even if I am compiling the full source for "uvm_pkg" ?

Share this post


Link to post
Share on other sites

Well, that particular error is gone when I defined the following

+define+UVM_NO_DPI 

 

check this file for reference: uvm-1.1d/src/dpi/uvm_dpi.svh

 

I guess the function uvm_hdl_deposit has to do something with C library. No sure if the define will cause some other example not to work.

Thanks

Share this post


Link to post
Share on other sites

depending upon your uvm version you have to add libuvmdpi.so ( and eventually libuvmpli.so ) since they contain the precompiled uvm dpi c-code. if you compile this code yourself then you dont have to supply the libraries.

 

/uwe

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...