Simple UVM example with Altair (Metrics) DSim Desktop and Xilinx Vivado Simulator (xsim).
-
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
-
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
- Open dsim_project.dpf project file in DSim Desktop extension.
- Click a triangle of LIBRAR CONFIGURATION pane to compile source files.
- Click a triangle of 'build' in SIMULATION CONFIGURATION pane.
- Click a triangle of 'run' in SIMULATION CONFIGURATION pane.
-
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