Skip to content

AlphaLyrae0/UVM_DPI_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UVM_DPI_Example

Example of DPI-C usage in UVM with AMD (Xilinx) Vivado Simulator (xsim) and Metrics DSim Desktop (dsim)

Usage

  • 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>

Test Description

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

About

Example of DPI-C usage in UVM with Vivado simulator (xsim) and Altair (Metrics) DSim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published