MiniTB Getting Started

Why MiniTB?

Good question. If you a designer proud enough to take responsibility for the quality of your code instead of waiting for verification engineers to do it for you, you’ll like MiniTB. MiniTB let’s you easily smoke test your design in a simple testbench structure so you can find and kill the bugs that no one else needs to see.

MiniTB Download and Setup

Download to setup is about a 3 minute procedure…

Get the latest version of MiniTB from Github

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

  • Download the latest version of MiniTB from Github by clicking the big blue button to the right.
  • Extract the MiniTB archive
    • Screen Shot 2013-06-04 at 3.43.56 PM
  • Source the MiniTB setup script (bash users source Setup.bsh. csh users source Setup.csh)
    • Screen Shot 2013-06-04 at 3.45.47 PM

Running the MiniTB Examples

For more elaborate examples of what you can do with MiniTB, check out these examples packaged with MiniTB. Both examples have README files to explain how to run them.

  • examples/modules/apb_slave – This is a verilog APB slave module being verified with a set of simple read/write accessibility tests.
  • examples/modules/ahb_slave – This is a verilog AHB slave module being verified with a set of simple read/write accessibility tests.

Building Your First New Module With MiniTB

It’ll take you about another 2 minutes to get a new project started from scratch. Here are the steps for building a new module with MiniTB. It has 1 output that’s driven high. We’ll use a MiniTB smoke test to make sure that happens.

  • Create and/or ‘cd’ to a new project directory
  • Start a module-under-test

Screen Shot 2013-10-08 at 10.17.44 AM

  • generate a new MiniTB template

Screen Shot 2013-06-04 at 3.49.58 PM

  • add a test to your unit test template using the SMOKETEST/SMOKETEST_END macros

Screen Shot 2013-10-08 at 10.18.33 AM

  • Run your new test using your simulator of choice!
    • For Mentor Questa
      • Screen Shot 2013-06-04 at 3.52.40 PM
    • For Cadence Incisive
      • Screen Shot 2013-06-04 at 3.52.29 PM
    • For Synopsys VCS
      • Screen Shot 2013-06-04 at 3.52.47 PM
  • In the logged output, find the passing ‘MiniTB Exit Status’

Screen Shot 2013-10-08 at 10.19.03 AM

2 thoughts on “MiniTB Getting Started

  1. Hi
    We are using ModelSim DE under windows for verifying our VHDL embedded FPGA designs.We have been using SystemVerilog for about 2 years building our testbenches. Does SVUnit only run under Linux?

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.