jsiva Posted April 20, 2013 Report Posted April 20, 2013 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 Quote
David Long Posted April 20, 2013 Report Posted April 20, 2013 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 Quote
ulfat Posted April 26, 2013 Report Posted April 26, 2013 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. Quote
apfitch Posted April 26, 2013 Report Posted April 26, 2013 What are the warnings? Have you tried the verror command to get an explanation of the warning message? Alan Quote
dave_59 Posted April 26, 2013 Report Posted April 26, 2013 There is an installation problem with Questa 10.0c only on Windows. Please read this note. Also note that this version of Questa is 2 years old and relative for UVM contains a very old version of it. Quote
ulfat Posted April 29, 2013 Report Posted April 29, 2013 Provided link is not opening. Can u tell me what to do to run UVM on Questa 10.0c on windows Quote
dave_59 Posted April 29, 2013 Report Posted April 29, 2013 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/ ulfat 1 Quote
Recommended Posts
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.