Hi,
Some tools (such as Questa Ultrasim 2019.3_2) have UVMC 2.3.1 already compiled natively with the factory installation.
UVMC 2.3.1 comes with a lot of examples.
However, I was not able to run neither the examples in the UVMC 2.3.1 Kit nor the examples contained in the factory installation using the native precompiled UVMC library of the tool. Using run_questa or Makefile.questa, the UVMC library is compiled again and the native precompiled tool library is not used.
My environment variables are:
export MENTOR=/usr/local/mentor
export BITS=64
export QUESTA_HOME=$MENTOR/questa_sim-2019.3_2/questasim
export MGC_HOME=$QUESTA_HOME
export MTI_HOME=$MGC_HOME
export MTI_VCO_MODE=$BITS
export MTI_BYPASS_SC_PLATFORM_CHECK=1
export UVM_HOME=$MGC_HOME/verilog_src/uvm-1.1d
export UVM_LIB=$MGC_HOME/uvm-1.1d
export UVMC_HOME=$MGC_HOME/verilog_src/uvmc-2.3.1
export UVMC_LIB=$MGC_HOME/uvmc-2.3.1
export PATH=$QUESTA_HOME/bin:$PATH
However, using modified files run_questa_native and Makefile.questa_native, I was able to use the precompiled native tool library.
File examples/commands/run_questa_native reads as:
# . . .
rm -rf work
vlib work
# Compile example ...
vlog -sv -L $UVM_LIB -L $UVMC_LIB +define+QUESTA sv_main.sv
sccom -DSC_INCLUDE_DYNAMIC_PROCESSES -DQUESTA -I$UVMC_HOME/src/connect/sc ex_phase_control.cpp
sccom -uvmc -link
# Run example ...
vsim -c -do "run -all; quit -f" -t 1ps -L $UVM_LIB -L $UVMC_LIB -l questa.log +PHASING_ONE sc_main sv_main
# . . .
File examples/commands/Makefile.questa_native has two lines changed with respect to Makefile.questa:
MAKE_CMD = $(MAKE) -f Makefile.questa_native
include ../common/Makefile.questa_native
The files in the remaining directories are changed in a similar manner.
File examples/common/Makefile.questa_native has two lines changed with respect to Makefile.questa:
VLOG = vlog -$(BITS) $(OPT_C) -sv -L $(UVM_LIB) -L $(UVMC_LIB) +define+QUESTA
LINK = sccom -$(BITS) $(OPT_L) -uvmc -link
A tarball containing only the examples with all native run_questa and Makefile can be found here:
Your text to link here…
A tarball containing all the files of the UVMC 2.3.1 kit and all run_questa_native and Makefile.questa_native files can be found here:
Your text to link here…
Best Regards,
Elmar