VHDL Testbench Generator Tool

Call: +44 (0)23 8098 8890
E-mail:

Introduction

In a previous client engagement we needed to create a testbench for directed tests to prove part of the design against waveforms in the functional specification. We realised there was an opportunity to use the waveforms, and the need to document them, to create a simple directed testbench. One of our summer interns was tasked with developing a tool allowing blocks to be tested with minimal impact on development time.

Use cases

We now use the tool on a variety of projects:

  • those requiring waveform descriptions for test case traceability in low level functional safety testing
  • testing data interfaces against data sheets

Test cases can be written within the editor itself or they can be uploaded to the editor. Each file submitted will be treated as an individual test case, which can then be selected during simulation. As tests are modified, a timing diagram depicting the current test can be seen. To download the timing diagrams, simply right click the waveforms and select your preferred format.

You can simply write test cases in JSON or YAML and we will email them to you along with an automatically generated testbench. Waveform diagrams for your test cases will be shown as you edit and can also be downloaded as images to aid in the documentation of your design.

You're welcome to use the tool free of charge as often as you wish.

Your waveforms and testbench will remain your property and will not be used either by ITDev or any third parties.

 

For further information on how to write test cases, click here
For a detailed example of how to use the tool, including an example testbench, click here

Waveform Editor

 

How To Use The Tool

Test cases are written in WaveJSON, which is equivalent to JSON or YAML but with some additional restrictions. A tutorial for writing test cases can be found here, however there are several additional conditions which must be met for a testbench to be generated:-

  • All signals must have a name and wave attribute, as well as a direction (dir) attribute which can be either in or out depending on whether the signal is an input to or an output from the block being tested.
  • Multi-bit signals must also have a width in bits and an array of data. The data elements must be valid for the specified radix. This attribute is a 1 or 2 character string containing s if the data is signed, and one of b, d or h to specify binary, decimal or hexadecimal data respectively. By default, data is assumed to be unsigned and in decimal format.
  • All signals in each test case must be the same length in cycles.
  • The clock signal must be a series of edges of only one type, for example p......., p...PPpP and n....N.. are all valid but p...n... and 1p...... are not. The type of edge must also be consistent across all test cases.
  • Edges must not be used by signals other than the clock signal.
  • All signals belonging to the block being tested must be specified in every test case. Additionally, the name, direction and width of each signal must not differ between test cases.
  • The period, phase and code features are not currently supported.

Test cases can be written within the editor itself or they can be uploaded to the editor. Each file submitted will be treated as an individual test case, which can then be selected during simulation. As tests are modified, a timing diagram depicting the current test can be seen.

Once the test cases have been written, the name of the module being tested must be specified, as well as the name of the clock signal and its period. After providing other details, a testbench will be generated and emailed to you, along with your test cases.

By default the tool contains a simple example, however a more complex example, including the resulting testbench, is available.

 

IET Enterprise Partners logo

Latest Blog Posts

VPK120 development board pictured wearing ear defenders with silent smiley on the fan
Posted 13th June 2023, By Aysa D
This blog contains the final steps for adding the minimal IP to send the necessary SYSMON data to the System Controller for controlling the fan on the AMD ...more
VPK120 development board pictured wearing ear defenders
Posted 25th May 2023, By Aysa D
Whilst developing on an AMD Versal VPK120 you will want to control the fan speed to keep the noise at manageable levels. This guide captures the steps taken to ...more
Robin on a bird table
Posted 20th January 2023, By Andy C
The customer is always right, and he hasn't changed his requirements, but the consultant says they're in constant flux. Who's right? Let's explore further ...
JonO interviewing Matthew
Posted 30th June 2022, By Jon O
30th June and it's Matthew's 2 year anniversary of joining as a full-time member of staff. Matthew spent 2 summers working for us as an intern before joining ...more

Latest News

Posted 12th September 2023
ITDev is proud to announce the launch of a new FPGA video IP core. The core allows integrators to quickly and easily add high-quality colour space conversion ...more
Shot of Sydney Harbour Bridge
Posted 3rd March 2023
We welcome David back from Australia and review some of the actvities we've been engaged with in February 2023.
Posted 9th August 2022
Last month we attended the second TechNES FPGA Frontrunners event, here's our write up from the day ...
Posted 28th July 2022
Here's a short report on our attendance at the ECS Taster week Careers Fair On Tues 26th July. A chance to promote industrial opportunties to year 11 students ...more