Hi,
i am trialling UVM for my department, i am succesfully compiling UVM code using
-sv_lib, e.g.
vsim +UVM_TESTNAME=test_2 -sv_lib $UVM_HOME/lib/uvm_dpi -t ps -novopt csm_lib.csm_tb
I have g++ my own uvm_dpi.dll for UVM/-1.1a/ download
however when i try and compile some example code that contains uvm_reg keyword in Modelsim
SE 10.1 i get the following error:
# ** Error: ../tb_sv/reg_model.sv(25): near "uvm_reg": syntax error, unexpected IDENTIFIER
my vlog command for this is:
vlog +incdir+$UVM_HOME/src/reg -work csm_lib ../tb_sv/reg_model.sv
can you tell me why it doesnt know anything about uvm_reg? do i need to include something else on the vlog command?
many thanks
john

Hard to say without looking at the code. How did you compile your UVM package? Did you follow the instructions here: http://go.mentor.com/uvm1-0-questa? You should only need to have +incdir+$UVM_HOME/src not with /reg
Note, unless you have a license for Questa, you will not be able to use randomization or covergroups with UVM.
Dave Rich
Mentor Graphics
http://go.mentor.com/drich
thanks Dave,
yes i tried it without the /reg and i went through the instructions at : http://go.mentor.com/uvm1-0-questa? to compile the dpi dll.
are the uvm_reg classes defined within the dpi dll or somewhere else, I have only compiled the dpi dll, perhaps there is something else i need to compile?
the code is straight from the examples in the uvm1.1a release
uvm-1.1a/examples/simple/registers/primer/reg_model.sv
so i know the code is right, its just the way im using it. We do have Questa licenses, no problem there.
do i simply need to add import uvm_pkg::*; at the top of the file?
im at home now so cant try it out. if its that simple i apologise for the original question.