Home / Learn Verilog / Directed vs Random Testing
Directed vs Random Testing
Both are needed.
Bottom lineBoth are needed.
Breaking it down
What it is
Directed tests target known cases; random tests explore the unknown.
Why it matters
Directed finds expected bugs; random finds surprises.
Mechanically speaking
Start directed, then random with coverage.
Shows up in
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Random finds what directed missedVerilog: edit and run
Three directed tests miss it; a sweep finds it.
Check yourself
1. Random tests need...
To know what is wrong.