Jump to content

UVM1.2 with modelsim 2021.4


Recommended Posts

I tried to run an example from EDA playground https://www.edaplayground.com/x/296 with modelsim 2021.4 and run into the following errors

# ** Fatal: (vsim-160) C:/Projects/uvm_1_2/src//dpi/uvm_svcmd_dpi.svh(27): Null foreign function pointer encountered when calling 'uvm_dpi_get_next_arg_c'
#    Time: 0 ns  Iteration: 0  Process: /uvm_pkg/#INITIAL#610 File: C:/Projects/uvm_1_2/src//dpi/uvm_svcmd_dpi.svh
# Fatal error in Module uvm_pkg at C:/Projects/uvm_1_2/src//dpi/uvm_svcmd_dpi.svh line 27

# HDL call sequence:
# Stopped at C:/Projects/uvm_1_2/src//dpi/uvm_svcmd_dpi.svh 27 Module uvm_pkg
# called from  C:/Projects/uvm_1_2/src//dpi/uvm_svcmd_dpi.svh 32 Function uvm_dpi_get_next_arg
# called from  C:/Projects/uvm_1_2/src//base/uvm_cmdline_processor.svh 247 Function uvm_pkg/uvm_cmdline_processor::new
# called from  C:/Projects/uvm_1_2/src//base/uvm_cmdline_processor.svh 62 Function uvm_pkg/uvm_cmdline_processor::get_inst
# called from  C:/Projects/uvm_1_2/src//base/uvm_root.svh 339 Function uvm_pkg/uvm_root::new
# called from  C:/Projects/uvm_1_2/src//base/uvm_root.svh 271 Function uvm_pkg/uvm_root::m_uvm_get_root
# called from  C:/Projects/uvm_1_2/src//base/uvm_coreservice.svh 198 Function uvm_pkg/uvm_default_coreservice_t::get_root
# called from  C:/Projects/uvm_1_2/src//base/uvm_root.svh 326 Function uvm_pkg/uvm_root::get
# called from  C:/Projects/uvm_1_2/src//base/uvm_root.svh 315 Module uvm_pkg

I am not sure how to approach this problem

Link to comment
Share on other sites

  • 2 weeks later...

It looks like you didn't compile the DPI portion of the UVM library, or don't know how to use the pre-compiled versions of the UVM library. (I don't know if Modelsim has pre-compiled libraries; Questa does for sure)

Link to comment
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.

 Share

×
×
  • Create New...