How to manage multiple testcases in a testbench...

B

Benjamin Couillard

Guest
Hi, I\'m trying to implement a testbench for a relatively complex module and I need multiple test cases to cover all the functionnality. I\'d like to find an elegant way to perform multiple testcases without using text files for the stimulus because I find that text files are not really flexible. Here\'s my options so far

1 - Use one testbench file per test case. I don\'t really like this approach as I need to duplicate a lot of code amongst the testbench files even if I put procedure in a package.

2 - Use a generic to specify the testcase, then use a If generate clause to wrap the stimulus and validation process for each test case.

3 - Put all test cases in a the same process and simply reset the module between each test case.

I hesitate between option 2 and 3. Is there another option ?

Regards
 

Welcome to EDABoard.com

Sponsor

Back
Top