Skip to content

VHDL · Topic

VHDL Testbenches — Stimulus, Checking & Self-Checking Design

Writing VHDL testbenches — entity-less top levels, stimulus processes, clock generation, assertions and self-checking structure.

A VHDL testbench is an entity with no ports, which is the language stating plainly that it connects to nothing outside itself. Everything else follows from that: the testbench instantiates the design, generates its own clock and reset, drives stimulus from processes, and decides for itself whether what came back was right. The step that separates a demonstration from a test is the last one — a testbench that prints values requires a human to read them, and a self-checking testbench does not.

Lessons in this topic(10)

Start hereTestbench FundamentalsVHDL Testbench Fundamentals
  1. 2Stimulus Generation
  2. 3Clock and Reset Generation
  3. 4Self-Checking Testbenches
  4. 5assert and report Statements
  5. 6File I/O with textio
  6. 7Data-Driven and Vector-Based Testing
  7. 8Randomized Stimulus in VHDL
  8. 9Behavioral and Reference Models
  9. 10VHDL Verification Frameworks