SVUnit is an open-source test framework for ASIC and FPGA developers writing Verilog/SystemVerilog code. SVUnit is automated, fast, lightweight and easy to use making it the only SystemVerilog test framework in existence suited to both design and verification engineers that aspire to high quality code and low bug rates.
NOTE: for instructions on how to get going with SVUnit, go to www.agilesoc.com/svunit.
NOTE: Refer also to the FAQ at: www.agilesoc.com/svunit/svunit-FAQ
Go here for release notes.
Read the latest documentation
export SVUNIT_INSTALL=`pwd`
export PATH=$PATH:$SVUNIT_INSTALL"/bin"
You can source Setup.bsh
if you use the bash shell.
source Setup.bsh
You can source Setup.csh
if you use the csh shell.
source Setup.csh
Start a class-under-test:
// file: bogus.sv
class bogus;
endclass
create_unit_test.pl bogus.sv
// file: bogus_unit_test.sv
`SVUNIT_TESTS_BEGIN
//===================================
// Unit test: test_mytest
//===================================
`SVTEST(test_mytest)
`SVTEST_END
`SVUNIT_TESTS_END
runSVUnit -s <simulator> # simulator is ius, questa, modelsim, riviera or vcs
Tell us about what you like, what you don't like, new features you'd like to see... basically anything you think would make SVUnit more valuable to you.
The best place for feedback is https://github.com/svunit/svunit/discussions. If you don't have a GitHub account, you can send an email to contact[at]svunit[dot]org.