Running multiple testbenches for VHDL designs
Asked Answered
B

1

6

Whenever I create a VHDL design I tend to have many modules. Each of these modules are then connected to one main file and so everything is synthesised. But I want to write seperate test benches for each of these modules and one for the global process. It would be nice if I could do something to link all of these testbenches together and make them run in succession, to test my entire design in one run. How could I do this? I like to use GHDL and asserts. Is it possible to create one super-testbench? Or would a shell script which iterates over them be better?

Brendabrendan answered 23/1, 2016 at 23:10 Comment(2)
Good strategy. There are unit testing tools for VHDL too ... one called VUnit for example : github.com/LarsAsplund/vunitHoo
@Paebbels, you are right. Fixed.Brendabrendan
B
5

The short answer is VUnit.

It's officially supported by the open source VHDL simulator GHDL and comes also with OSVVM - a set of testbench helper packages for random value generation and test coverage.

You should considder using GHDL 0.34dev (build from sources), because it got some fixes for vunit and OSVVM.

All sources are available in GitHub repos:

Balinese answered 24/1, 2016 at 12:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.