UVM-UTest Getting Started

Why UVM-UTest?

UVM-UTest is an open-source demonstration that shows the value of unit testing legacy code. If you’ve got legacy code (who doesn’t??) and/or you’re a person that cares about the UVM framework having the highest quality of code possible, then you’ll be interested in UVM-UTest.

Step 1: SVUnit Download and Setup

UVM-UTest runs on the SVUnit unit testing framework so you’ll need SVUnit first. Don’t worry if you haven’t got SVUnit, it’s quite easy to download and setup (if you want to know more about getting started with SVUnit, see SVUnit Getting Started).

Get the latest version of SVUnit from GitHub

[CSSBUTTON target=”https://github.com/nosnhojn/svunit-code/archive/master.zip” color=”003366″ textcolor=”ffffff” float=”left” newwindow=”true”]Download SVUnit[/CSSBUTTON]

  • Download the latest version of SVUnit from GitHub by clicking the big blue button to the right.
  • Extract the SVUnit archive

Screen Shot 2016-05-06 at 10.46.08 AM

  • Source the SVUnit setup script (bash users source Setup.bsh. csh users source Setup.csh)

Screen Shot 2016-05-06 at 10.48.17 AM

Step 2: Download and Run UVM-UTest

Now it’s just a matter of fetching UVM-UTest and running the tests…

Get the latest version of UVM-UTest from Github

[CSSBUTTON target=”https://github.com/nosnhojn/uvm-utest/archive/master.zip” color=”0B610B” textcolor=”ffffff” newwindow=”true”]Download UVM-UTest[/CSSBUTTON]

  • Download the latest version of UVM-UTest from github by clicking the big green button to the right.
  • Extract the UVM-UTest archive
    • Screen Shot 2013-06-04 at 9.47.57 AM
  • ‘cd’ to the directory where the unit tests live
    • Screen Shot 2013-06-04 at 9.48.39 AM
  • Run UVM-UTest with your simulator of choice
    • For Mentor Questa
      • Screen Shot 2015-06-30 at 4.47.20 PM
    • For Cadence Incisive
      • Screen Shot 2015-06-30 at 4.47.38 PM
    • For Synopsys VCS
      • Screen Shot 2015-06-30 at 4.47.48 PM

Step 3: Contribute to UVM-UTest

Running UVM-UTest is easy. Anyone can do that! If you really care – I mean really care – you’ll ask us how you can contribute to UVM-UTest :).

  • Let us know you’re interested in contributing by contacting us at neil.johnson@agilesoc.com
  • Await further instruction

3 thoughts on “UVM-UTest Getting Started

  1. Hi,

    I follow the steps of web page “UVM-UTest Getting Started”.
    When I execute “make SIMULATOR=QUESTA” in step 2.
    It shows below error message.

    svunit.mk:10: /stec/tw/users/jhu/wrk/MENTOR/utest/svunit-code/bin/questa.mk: No such file or directory
    Makefile:5: /stec/tw/users/jhu/wrk/MENTOR/utest/svunit-code/bin/cfg.mk: No such file or directory
    make: *** No rule to make target `/stec/tw/users/jhu/wrk/MENTOR/utest/svunit-code/bin/cfg.mk’. Stop.

    Files: questa.mk and cfg.mk don’t exist in svunit-v3.7.tar.gz.

    Could you upload the new one?

    Thanks,
    Jason

    1. jason, uvm-utest was back on the make based version of svunit that we moved away from at v3.1. let me look into it and update fot v3.*. I’ll get back to you asap (probably wednesday, hopefully sooner).

      -neil

    2. jason, I just pushed a new version that is compatible with svunit v3.*. also updated the getting started page with new command lines. should work now. thanks for giving this a shot.

      -neil

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.