To compile your uvm testbench with uvm-1.2, perform following setups.
- Download uvm-1.2 libraries from Accellera
- Extract uvm-1.2 library. To use uvm-1.2, uvm_pkg.sv is available in uvm-1.2/src directory.
- Use this src/ directory location in your Makefile/Script to refer to uvm-1.2 package.
For e.g.(For QuestaSim)
-----------------------------------------------------------------------------------
"vlib myWork"
"vmap work myWork"
"vlog -work myWork -f tb.f +define+UVM_NO_DPI"
"vsim ..."
------------------------------------------------------------------------------------
Contents of tb.f:
---------------------------------------------
+incdir+uvm-1.2/src
uvm-1.2/src/uvm_pkg.sv
#Other src directories and
#Compilation files.
---------------------------------------------
- Here, +define+UVM_NO_DPI is required to avoid compiling DPI libraries with uvm-1.2.
For more information, leave a message in comment section.
- Download uvm-1.2 libraries from Accellera
- Extract uvm-1.2 library. To use uvm-1.2, uvm_pkg.sv is available in uvm-1.2/src directory.
- Use this src/ directory location in your Makefile/Script to refer to uvm-1.2 package.
For e.g.(For QuestaSim)
-----------------------------------------------------------------------------------
"vlib myWork"
"vmap work myWork"
"vlog -work myWork -f tb.f +define+UVM_NO_DPI"
"vsim ..."
------------------------------------------------------------------------------------
Contents of tb.f:
---------------------------------------------
+incdir+uvm-1.2/src
uvm-1.2/src/uvm_pkg.sv
#Other src directories and
#Compilation files.
---------------------------------------------
- Here, +define+UVM_NO_DPI is required to avoid compiling DPI libraries with uvm-1.2.
For more information, leave a message in comment section.