Installation of UVM

Hi,

I’m also new to this, but as I understand it, the uvm_hdl_deposit should, indeed, be imported from the uvm_dpi shared lib. (being an imported DPI-C function)
Regarding using GCC in order to compile uvm_dpi.cc: you can just use make on “makefile.questa”, for example, assuming that you are using Questa, have MTI_HOME set in your environment variables and that you are running it from the examples directory (from within the uvm-1.1d dir). This is what the readme suggests.
If you still prefer to use GCC directly, you can inspect the above mentioned makefile for the required parameters. (or create your own makefile)

For example:

gcc -m32 -fPIC -DQUESTA -g -W -shared -x c -I $SIMULATOR_DIR/include $UVM_DPI_SOURCE -o $UVM_1_1d_DIR/lib/uvm_dpi.so

Remarks:

  • $SIMULATOR_DIR can be substituted (or defined in a script) with whatever the path to your simulator/sv_compiler directory might be.
  • $UVM_DPI_SOURCE is the path to the uvm_dpi.cc file.
  • $UVM_1_1d_DIR is the path to your uvm-1.1d dir.

Also, please note that:

  1. $SIMULATOR_DIR/include has (or should have) the vpi_user.h file inside it which solves your compile error
  2. you have to create the above lib directory manually before running the compiler

Regards,
Florin