Jump to content

Recommended Posts

Posted

Can Anybody please tell me how to simulate UVM Program in Questasim 10.0b 

 

I'm getting the following errors for hello world program The program is in attached file.

 

 

# -- Compiling package my_pkg

# -- Importing package mtiUvm.uvm_pkg (uvm-1.0p1 Built-in)

# ** Error: hello_world/class.sv(4): (vlog-2163) Macro `uvm_component_utils is undefined.

# ** Error: hello_world/class.sv(4): near "(": syntax error, unexpected '(', expecting function or task

# -- Compiling module dut

# ** Error: hello_world/dut.sv(2): Undefined variable: dif.

# ** Error: hello_world/dut.sv(2): Illegal use of 'automatic' for variable declaration (dif).

# ** Error: hello_world/dut.sv(1): Identifier must be declared with a port mode: dif.

# ** Error: hello_world/inf.sv(4): near "m": syntax error, unexpected IDENTIFIER, expecting class

# ** Error: hello_world/top.sv(1): near "module": syntax error, unexpected module, expecting IDENTIFIER or TYPE_IDENTIFIER

# C:/questasim_10.0b/win32/vlog failed.

 

 

In the attached file program is there.

 

 

Please help me.

programdetails.zip

Posted

You need to include the UVM header file to see the macros in class.sv

 

 

`include "uvm_macros.svh"
 

 

 

Download UVM and have a look at the hello_world.sv example if you are not sure where to put this.

 

I would suggest you try compiling it again after fixing that error - the other errors may be due to those in the first file.

 

Regards,

Dave

Posted

Hi,

 

I am compiling the same code as jsiva is on Questasim 10.0c (Windows XP). The code is compiled well but when i try to simulate it give warrings VSIM-3770.

 

I read many articles on net but unbale to resolve my issue. Kindly Can anybody tell me how to resolve them.

Posted

Please copy the file to the correct location if you install 10.0c and use UVM. With later releases the file should be in the correct place.


The missing files are:

<install>/<uvm_dir>/win32/uvm_dpi.dll


The <uvm_dir> names are: uvm-1.0p1, uvm-1.1 and uvm_reg-1.1.


The files are located at:

<install>/win32/<uvm_dir>/uvm_dpi.dll


Please copy the files to the correct location:

<install>/<uvm_dir>/win32/

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.

×
×
  • Create New...