Home / Learn Verilog / RTL Coding Guidelines
RTL Coding Guidelines
Rules that prevent bugs.
The gistRules that prevent bugs.
The idea, explained simply
What it is
Use non-blocking in clocked blocks, blocking in combinational, full if/else or defaults, one clock per block, no latches by accident.
Why it matters
Consistent style makes designs reviewable.
Mechanically speaking
Follow a written guideline.
Shows up in
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
A guideline-clean blockVerilog: edit and run
Defaults, separate comb/ff, reset on state.
Check yourself
1. Clocked blocks use...
Non-blocking.