Example of DPI-C usage in UVM with AMD (Xilinx) Vivado Simulator (xsim) and Metrics DSim Desktop (dsim)
-
To compile and run all tests
> make all
-
To run individual test
> make <Test Name>
dsim is automatically used if it is installed and properly setup on your terminal. xsim is used otherwise.
You can edit dsim.mk and/or xsim.mk to accommodate your environment like tool version, path,etc.
For manual simulator selection.
> make dsim_<command>
> make xsim_<command>
Alternatively,
> make -f dsim.mk <command>
> make -f xsim.mk <command>
- simple_test
- Conventional UVM sequence test without DPI-C
- dpi_test1
- C/C++ sequence test with DPI-C
- dpi_test2
- Conventional UVM sequence test which gets values from C/C++ side with DPI-C
- unite_test
- Executes all three sequences above in a row