Hey,
I am new to UVM and model sim.
I try to compile a simple example im modelsim:
I put the uvm-1.2 folder which contains the uvm_pkg in the folder of my project.
I try to compile with the following command:
vlog -work work -sv -stats=none C:/modeltech_pe_10.4c/examples/testbench.sv +incdir+./uvm-1.2/src
I got the following error:
** Error: C:/modeltech_pe_10.4c/examples/testbench.sv(1): (vlog-13006) Could not find the package (uvm_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
I run your command and I got the following errors:
** Error: C:/modeltech_pe_10.4c/examples/testbench.sv(1): (vlog-13006) Could not find the package (uvm_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
** Error: (vlog-13069) C:/modeltech_pe_10.4c/examples/testbench.sv(9): near “uvm_env”: syntax error, unexpected IDENTIFIER.
** Error: C:/modeltech_pe_10.4c/examples/testbench.sv(9): Error in class extension specification.