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).
- Download the latest version of SVUnit from GitHub by clicking the big blue button to the right.
- Extract the SVUnit archive
- Source the SVUnit setup script (bash users source Setup.bsh. csh users source Setup.csh)
Step 2: Download and Run UVM-UTest
Now it’s just a matter of fetching UVM-UTest and running the tests…
- Download the latest version of UVM-UTest from github by clicking the big green button to the right.
- Extract the UVM-UTest archive
- ‘cd’ to the directory where the unit tests live
- Run UVM-UTest with your simulator of choice
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
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
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
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