- Create a new Vivado RTL project in 2022.1, targeting to the required device.
- Add the directories
src
andverif
to the project by clicking on the + button.
- Mention the UVM verification files for simulation only.
- After the hierarchy is updated, ensure to select adder_4_bit_tb_top.sv file as top module.
- For UVM, you need to provide test name, here the test name is
adder_4_bit_basic_test
. For this add-testplusarg UVM_TESTNAME=adder_4_bit_basic_test -testplusarg UVM_VERBOSITY=UVM_LOW
toxsim.more_options
- Launch simulation.
This can run simulation for 1000 ns by default. Click run all to complete the simulation. You can see following in TCL console.
Following are the steps to use UVM in Non-Project/Batch Mode:
- To run the simulation in non-project mode, change the current working directory to the run folder. cd ./Adder_4_bit/run
- For standalone simulation in Vivado you
can source
run_xsim.csh
on Linux andrun_xsim.bat
on windows or sourcerun.tcl
using the below command in Linux/Windows. Vivado–mode batch –source run.tcl
- Once the simulation gets finished you can observe the UVM test results in
the Shell or command prompt as shown in the following figure.
Directory Structure of both project and non project mode:
- src & verif - Design and verification environment related files.
- Run - Location to run simulation in Non project mode.
- UVM_test - Project Mode XSIM simulation.