Home / Learn Verilog / Reusable Stimulus
Reusable Stimulus
Put patterns in tasks and files.
Quick summaryPut patterns in tasks and files.
How to think about this
In plain terms
Wrap common sequences in tasks so tests stay short.
Why we use it
Keeps tests readable and consistent.
Under the hood
Library of tasks: reset, write, read, wait.
Real-world use
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Tasks as a libraryVerilog: edit and run
Tests read like a script.
Quick quiz
1. Reusable tasks make tests...
DRY.