Getting Started

Requirements

  • A development build of Icarus Verilog (iverilog and vvp on your PATH).

  • csh/tcsh for the setup script.

Setup

From the repository root:

source setup.csh

This sets IVL_UVM_HOME, which the Makefiles and file lists use.

Run a test

cd ivl_uvm_regress/run_dir
make vw1

vw1 compiles and runs test t1. The log files ivl_uvm_comp_1.log (compile) and ivl_uvm_run_1.log (run) are written to the same directory. Targets vw0 to vw45 run tests t0 to t45; see Regression.

Run all tests and compare with the golden logs

make check

Compile line

The Makefile compiles a test like this:

iverilog -c $IVL_UVM_HOME/scripts/ivl_uvm_cmds.f -DVW_IVLOG_GO2UVM -DIVL_UVM -g2012 \
         -I$IVL_UVM_HOME/ivl_uvm_src -o vw_ivl_ivl_uvm.vvp -f flist.t4

A file list has three parts: the package, your test files, and ivl_uvm_top.svh as the last entry.

${IVL_UVM_HOME}/ivl_uvm_src/ivl_uvm_pkg.sv
../../ivl_uvm_tests/ivl_uvm_test_4/ivl_uvm_test_bcl.sv

// This should be the last line in the file list
${IVL_UVM_HOME}/ivl_uvm_src/ivl_uvm_top.svh

ivl_uvm_top.svh prints the final report summary (the severity counts and the Test PASSED or Test FAILED line) when the simulation ends. Tests t8 to t45, except t44, do not use it; they report through uvm_info and the other message macros. If you compile with -s <module>, list -s ivl_uvm_top as well to keep the summary.

Run-time options

Option

Meaning

+UVM_TESTNAME=<name>

Test class to run (see Factory and Test Selection)

+UVM_VERBOSITY=<level>

Message verbosity, for example UVM_MEDIUM, UVM_HIGH, UVM_DEBUG

+UVM_TIMEOUT=<n>

Global simulation timeout in milliseconds (default 1). Add ,NO to stop the test from changing it with uvm_top.set_timeout

+UVM_MAX_QUIT_COUNT=<n>

Stop after this many errors