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: .. code-block:: tcsh source setup.csh This sets ``IVL_UVM_HOME``, which the Makefiles and file lists use. Run a test ---------- .. code-block:: tcsh 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 :doc:`regression`. Run all tests and compare with the golden logs ---------------------------------------------- .. code-block:: tcsh make check Compile line ------------ The Makefile compiles a test like this: .. code-block:: tcsh 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. .. code-block:: text ${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 ``, list ``-s ivl_uvm_top`` as well to keep the summary. Run-time options ---------------- .. list-table:: :header-rows: 1 :widths: 30 70 * - Option - Meaning * - ``+UVM_TESTNAME=`` - Test class to run (see :doc:`factory_and_test_selection`) * - ``+UVM_VERBOSITY=`` - Message verbosity, for example ``UVM_MEDIUM``, ``UVM_HIGH``, ``UVM_DEBUG`` * - ``+UVM_TIMEOUT=`` - 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=`` - Stop after this many errors