Skip to content

AlphaLyrae0/UVM_Simple_Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UVM_Simple_Example

Simple UVM example with Altair (Metrics) DSim Desktop and Xilinx Vivado Simulator (xsim).

Linux (Batch Run)

  • Setup (optional)

    source $HOME/metrics-ca/dsim/<DSim Version>/shell_activate.bash
    export DSIM_LICENSE=$HOME/metrics-ca/dsim-license.json

    Change the path and tool version depending on your environment. Similar setup is done inside dsim.mk if this setup is not done.

  • Run a test

    Makefile is available for Linux batch run.

    make run

    DSim is selected by dafulat. You can explicitly specify DSim by the following.

    make dsim_run

Windows (Batch run)

  • Setup (Optional)

      %LOCALAPPDATA%\metrics-ca\dsim\<DSim Version>\shell_activate.bat
      set DSIM_LICENSE=%LOCALAPPDATA%\metrics-ca\dsim-license.json

    Change the path and tool version depending on your environment. Same setup is done inside make.bat.

  • Run a test (Comand Prompt)

    Besides Makefile for Linux, ./make.bat for Windows is available. You can use similar commands as Linux make.

    make

    or

    make build
    make run
  • Run a test (PowerShell)

    For Windos PowerShell, ./ is necessary.

    ./make
    ./make build
    ./make run

VS Code GUI Run (Both of Windows and Linux)

  1. Open dsim_project.dpf project file in DSim Desktop extension.
  2. Click a triangle of LIBRAR CONFIGURATION pane to compile source files.
  3. Click a triangle of 'build' in SIMULATION CONFIGURATION pane.
  4. Click a triangle of 'run' in SIMULATION CONFIGURATION pane.

Linux

  • Setup (Optional)

    source /tools/Xilinx/Vivado/<Vivado Version>/settings64.sh

    Change the path and tool version depending on your environment. Similar setup is done inside xsim.mk.

  • Batch Run

    make run

    Xsim is automatically used if the Xsim setup above is done. If both of DSim and Xsim setup are done, then, DSim is selected. In that case, you can explicitly specify Xsim adding USE_XSIM=1 environment variable.

    export USE_XSIM=1
    make run

    Or

    env USE_XSIM=1 make run

    Or

    make run USE_XSIM=1

    Alternatively, you can add xsim_ before the commands.

    make xsim_run
  • GUI launch

    make gui

About

Simple UVM example with Altair (Metrics) DSim and Vivado xsim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SystemVerilog 66.8%
  • Makefile 24.3%
  • Batchfile 7.6%
  • Forth 1.3%