Home / Learn Verilog / Testbench Layers
Testbench Layers
Signal, command, functional, scenario.
The short versionSignal, command, functional, scenario.
Theory in plain words
The basic idea
Good testbenches separate pin wiggling (low) from test scenarios (high).
Why this comes up
Lets you change tests without touching pin-level code.
The mechanics
Each layer calls the one below.
Where it is used
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Layers with tasksVerilog: edit and run
Change the scenario without touching pins().
Careful:This simulator runs the core of SystemVerilog (logic, always_ff, always_comb, enum, typedef, int, loops with int, break/continue, inside, immediate assert). Features shown only in the grey code box need a full simulator (Icarus -g2012, Verilator, Questa, VCS, Xcelium).
Quick check
1. Lower layers handle...
Signals.