# UVM\_NO\_DPI Option usage

**URL:** <https://verificationacademy.com/forums/t/uvm-no-dpi-option-usage/37883>\
**Category:** UVM\
**Tags:** systemverilog-uvm, UVM, Systemverilog-DPI, uvm-dpi\
**Created:** [July 29, 2020, 9:18am UTC](https://verificationacademy.com/forums/t/uvm-no-dpi-option-usage/37883 "2020-07-29T09:18:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_raveendran](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/8baadc/32.png) [@r\_raveendran](https://verificationacademy.com/forums/u/r_raveendran)\
**Post date:** [July 29, 2020, 9:18am UTC](https://verificationacademy.com/forums/t/uvm-no-dpi-option-usage/37883/1 "2020-07-29T09:18:12Z")

</div>

Hi,

Is the UVM DPI same as Systemverilog DPI inorder to make C and other programming languages compatible with systemverilog?

I am seeing the UVM\_NO\_DPI option in UVM related testbencheS. What is the usage of this option? If I am disabling UVM DPI by setting +define+UVM\_NO\_DPI, then what will be the behaviour and working and if I am not passing +define+UVM\_NO\_DPI what will be the behaviour and working?

In the DPI file I am seeing like this: what is meant by use UVM without any tool -specific overlay?

```verilog
   21 `ifndef UVM_DPI_SVH
   22 `define UVM_DPI_SVH
   23
   24 //
   25 // Top-level file for DPI subroutines used by UVM.
   26 //
   27 // Tool-specific distribution overlays may be required.
   28 //
   29 // To use UVM without any tool-specific overlay, use +define+UVM_NO_DPI
   30 //
   31
   32 `ifdef UVM_NO_DPI
   33 `define UVM_HDL_NO_DPI
   34 `define UVM_REGEX_NO_DPI
   35 `define UVM_CMDLINE_NO_DPI
   36 `endif
   37
   38 `include "dpi/uvm_hdl.svh"
   39 `include "dpi/uvm_svcmd_dpi.svh"
   40 `include "dpi/uvm_regex.svh"
   41
   42 `endif // UVM_DPI_SVH

```

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [July 29, 2020, 7:09pm UTC](https://verificationacademy.com/forums/t/uvm-no-dpi-option-usage/37883/2 "2020-07-29T19:09:10Z")

</div>

_In reply to [rr2007](https://verificationacademy.com/forums/t/uvm-no-dpi-option-usage/37883):_

There is only one DPI as defined by SystemVerilog. The UVM\_NO\_DPI option prevents compilation of UVM C code that uses the SystemVerilog DPI. This option is only there for some environments that do not have their C compilers installed. I think this this is pretty rare, plus most tools ship with UVM libraries pre-compiled anyways.

This UVM DPI code gives you the following features:

- UVM RAL backdoor access to DUT registers via a string path
- improved command line access better than what you can do with $value$plusargs
- Improved wildcard string matching using regular expressions(REGEX) instead of the simpler glob patern
