Setting up a regular SystemVerilog project in Sigasi Studio is easy. As UVM, the Universal Verification Methodology, complicates everything, it also complicates project setup in Sigasi Studio. In this blog post I will demonstrate how to use UVM in a Sigasi project.

As an example I will show how to open the UBUS project that is shipped with the reference implementation of UVM in Sigasi Studio.

The procedure consists of 11 simple steps:

  1. Download the reference implementation of UVM
  2. Unpack the sources on your disk (e.g. to /Users/heeckhau/demo/uvm-1.2)
  3. Import the UBUS sources in Sigasi:
    1. Select File > Open Project from File System..., click Directory... and browse to the location of the UBUS source files (in my case this is /Users/heeckhau/demo/uvm-1.2/examples/integrated/ubus).
    2. Click Finish
  4. Right click the project (ubus), and select Configure > Add (System)Verilog support
  5. If you inspect the project's Makefile (Makefile.questa), you'll see that only two file are actually compiled uvm.sv and ubus_tb_top.sv. Therefor we will first exclude all files files from building, and add these two files to the build in steps 7 and 9.
    To do this, right click on the project (ubus), and select Exclude from Build.
    Exclude all files from build
  6. Use your files system explorer (Windows Explorer, Finder, Nautilus) and navigate to the UVM sources (in my case this is /Users/heeckhau/demo/uvm-1.2/src/) and drag and drop this folder into the ubus project.
    Select Link to file and folders and OK Link the UVM sources
  7. Add the UVM sources to the include path: right click the project and select Properties > (System)Verilog include path; enter src as include path and confirm with OK. Set UVM include path
  8. Add uvm.sv to the build: right click on file src/uvm.sv and select Set Library > New library and enter work
  9. Add ubus_tb_top.sv to the build: right click on file examples/ubus_tb_top.sv and select Set Library > work
  10. Open examples/ubus_tb_top.sv by double clicking the file in the project explorer. Notice the error markers on the `includes.
  11. Click on the error marker in the margin (with the small light bulb) and select Add sv to include paths. This automatically adds the sv folder to the include paths.

Your Sigasi Studio UVM project is now ready for use. Feel free to experiment with hovers, open declaration (F3), find references and autocomplete (Ctrl+Space).

UVM interface example hover UVM open declaration