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 Sourceforge

  • Download the latest version of SVUnit from sourceforge by clicking the big blue button to the right.
  • Extract the SVUnit archive (I show 1.6 but ignore the version… doesn’t matter)
    • Screen Shot 2013-06-03 at 4.29.40 PM
  • Source the SVUnit setup script (bash users source Setup.bsh. csh users source Setup.csh)
    • Screen Shot 2013-06-03 at 4.39.25 PM

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

  • 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
Share/Bookmark

3 Responses to UVM-UTest Getting Started

  1. Jason Hu says:

    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

    • nosnhojn says:

      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

    • nosnhojn says:

      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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>