A Scalable Verilog Testbench II: full workable code and scripts

Make it to the Right and Larger Audience

Blog

A Scalable Verilog Testbench II: full workable code and scripts

This is a follow up to previous post of “A Scalable Verilog testbench to support multiple test cases”. The attached tarball of this post contains all the workable rtl, tb, and scripts. Here is how it works:

  1. download and untar the attached file. All files are in /example dir. Place /example under your $HOME.
  2. go to $HOME/example/scripts and run “source setup.sh”.
  3. create your sim directory anywhere, for example $HOME/sim.
  4. go to $HOME/sim, run “create_tests.pl”. it will create two test cases/folders, test1 and test2. It will also compile common rtl files into common lib at $HOME/sim/clib.
  5. at $HOME/sim, run “run_tests.pl”. it will run test1 and test2 one by one and dump waveform vsim.wlf into each test case directory.

 

Here I am using Modelsim as sim tool. No particular requirement on Modelsim version as long as commands such as vlog and vsim can be found. The test bench and script can be easily ported to other sim tools.

You can also refer to previous post for the ideas behind this test bench.

 

The following is site premium content.
To gain access you can purchase points or contribute content and use contribution points to gain access.
Highlights: 50 words
 
Staff Engineer
Author brief is empty
Groups:

2 Comments
  1. ramin122002 9 months ago
    0
    -0

    Thank you very nice

    0
  2. tDey 1 year ago
    0
    -0

    Just what I am looking for. A full rtl and testbench setup with all scripts and sample code.

    5

Contact Us

Thanks for helping us better serve the community. You can make a suggestion, report a bug, a misconduct, or any other issue. We'll get back to you using your private message ASAP.

Sending

©2017  ValPont.com

Forgot your details?