RegisterLogin  
Update Profile
   
You are here: Forum  
Minimize 
SVUG Community Forum
Subject: VMM Libraries for Modelsim
Prev Next
You are not authorized to post a reply.

Author Messages
DEEPTIUser is Offline

Posts:2

02/11/2009 5:54 AM  
Hi..
I'm new user of SystemVerilog.  I've download VMM standard libraries for Modelsim (Kit that is present on modelsim site). I'm using modelsim 6.3 version.
My question is 
1. Do modelsim 6.3 supports VMM based libraries or I need to have different version of modelsim??
2. Do I need to compile all these libraries on command line OR is there some area where I can keep these libraries and modelsim will automatically pick them.??

-Deepti


DAVEUser is Offline

Posts:56

02/16/2009 4:49 PM  
You'll need Questa/Modelsim 6.3g or later to compile the VMM libraries, 6.5 was released a few weeks ago. However, you'll need Questa if you plan to perform any constrained random generation, assertions, or functional coverage collection.

If you use compile the VMM as a package, you can just compile it once and import the package where needed. This is our recommended way of using any class library.

Dave Rich
Mentor Graphics
DEEPTIUser is Offline

Posts:2

02/16/2009 10:00 PM  
Thanks Dave,
I'll try  with Questasim latest release..

-Deepti
rajeswarUser is Offline

Posts:3

08/20/2009 11:02 PM  
Hi
this is rajeswar

 I am also user of systemverilog i am using the Modelsim 6.5

my modelsim 6.5 does not support the VMM libraries  i think VMM libraries is only for synopssys VCS simulator

plse send the link where you can download the vmm for modelsim

DAVEUser is Offline

Posts:56

08/21/2009 1:27 AM  
http://www.ovmworld.org/contributions-details.php?id=39&keywords=OVM_/_VMM_1.1_Interoperability_Kit
rajeswarUser is Offline

Posts:2

09/22/2009 11:57 PM  
Thanks DAVE
rajeswarUser is Offline

Posts:2

09/23/2009 12:01 AM  
Hi
I am using the systemverilog for verification. I am presently working on the VMM on VCS and i want to learn the OVM
please send some small example testbenches using OVM using Modelsim simulator.
my mail id is rajeswar.madhu@inmail24.com
DAVEUser is Offline

Posts:56

09/23/2009 12:13 AM  
Please go to http://www.ovmworld.org, sign up for the forums there and download the OVM kit. The kit has a few basic examples and there are even more examples in http://www.ovmworld.org/contributions-details.php?id=54&keywords=OVM_Cookbook_Example_Kit

Ask your questions over there as not to many people use this forum. It has difficulties posting Verilog code.
rajeswarUser is Offline

Posts:3

10/21/2009 6:04 AM  
hello this is rajeswar
how tto set the environment in questasim
i am using the ovm/vmm interoperability libraries

[script removed]
rajeswarUser is Offline

Posts:3

11/15/2009 7:21 AM  

i am using the ovm/vmm interoperability libraries for running the vmm programs ion questa sim 6.4c

i can down load the libraries from the mentor site

it give the error

** Fatal: (vsim-3770) Failed to find user specified function 'vmm_str_match'. The search list was empty.

# Using -sv_lib, -sv_root, and -sv_liblist arguments can provide a search list

# of shared libraries that will be used to resolve user specified functions.

#    Time: 0 ps  Iteration: 0  Instance: /dramtb File: dram_tb_top.sv

# FATAL ERROR while loading design

# Error loading design

what can i do ?

whoUser is Offline

Posts:1

03/30/2010 1:47 AM  
You need to pass a library .so file to vsim for MTI to successfully run the simulation. Your vsim command will have to be modified.
Add "-sv_lib $VMM_HOME/shared/lib/linux/vmm_str_dpi" to the vsim command
kotragoudUser is Offline

Posts:2

04/13/2010 3:40 AM  
Hi,

I am trying to compile the VMM examples provided using the modelsim6.4aSE.

I got following error
----------------------------------------------------------------------
# ** Fatal: (vsim-3770) Failed to find user specified function 'vmm_str_match'. The search list was empty.
# Using -sv_lib, -sv_root, and -sv_liblist arguments can provide a search list
# of shared libraries that will be used to resolve user specified functions.
#    Time: 0 ns  Iteration: 0  Instance: /tb_top File: D:/../../../../../Command_Master_Xactor/tb_top.sv
# FATAL ERROR while loading design
-----------------------------------------------------------------------

After looking at this posting I provided the .so library path as follows

vsim "-sv_lib C:/../../../vmm-1.1.1a/shared/lib/linux/vmm_str_dpi" work.tb_top
(since in the modelsim compiatble library which I have downloaded from OVM world there is no windows specific .so folder. So, I tried with .so library in linux folder)

With the above modification I am still not able to load the design.

I got following error

--------------------------------------------------------------------------
# vsim -sv_lib C:/Documents and Settings/kotragoudh/Desktop/vmm-1.1.1a/shared/lib/linux/vmm_str_dpi -novopt work.tb_top
# (vsim-3763) SystemVerilog DPI cannot access file '.\C:/Documents.dll'
# Invalid argument. (errno = EINVAL)
# Use the -help option for complete vsim usage.
# Error loading design
---------------------------------------------------------------------------

Kindly help me in fixing this.

Thanks,

KeithUser is Offline

Posts:6

04/13/2010 1:53 PM  
It looks like vsim does not like the spaces in the C:/Documents and Settings/ directory since it cant find Documents.dll. Try put quotes around the directory or copy your files to a directory with no spaces in the name.

eg. vsim -sv_lib "C:/Documents and Settings/kotragoudh/Desktop/vmm-1.1.1a/shared/lib/linux/vmm_str_dpi" -novopt work.tb_top

kotragoudUser is Offline

Posts:2

06/22/2010 8:34 AM  
Hi Keith,

Thanks for your reply.

Now I am able to run the VMM examples in QuestaSim.

I used -sv_lib ../../../vmm-1.1.1a/shared/bin/win32/vmm_dpi_str.dll

Regards,
Kotragoud
PrashanthUser is Offline

Posts:2

07/25/2010 10:38 AM  
Hi,

Followed all instructions till the last post. Now i get new errors. Copied below,

** Error: (vsim-3193) Load of ".\../vmm_libs/vmm-1.1.1a/shared/bin/win32/vmm_str_dpi.dll" failed: DLL dependent library not found.
# ** Fatal: (vsim-3748) Failed to load DPI object file ".\../vmm_libs/vmm-1.1.1a/shared/bin/win32/vmm_str_dpi.dll" while trying to resolve 'vmm_str_match'.

Any ideas what am missing? I use Questa v6.5b.

Thanks,
Prashanth
PrashanthUser is Offline

Posts:2

07/25/2010 1:41 PM  
Ok appears to be a beginners mistake. +define+VMM_NO_STR_DPI must be a compile time option not for simulation. :(

eg: vlog -sv -mfcu -f flist +define+VMM_NO_STR_DPI
vsim work.top

the -sv_lib option isnt necessary in this case.
You are not authorized to post a reply.
Forums > General Discussion > Main Discussion Area > VMM Libraries for Modelsim



ActiveForums 3.7
  

 Copyright 2008 by SystemVerilog User Group Contact Us    Privacy Statement