Home / Learn Verilog / Linting RTL
Linting RTL
Static checks before simulation.
In shortStatic checks before simulation.
What's actually going on
Definition
A linter reads the code and warns about latches, width mismatches, unused signals and style problems.
Why you need this
Cheapest bug finder there is.
How it works
Run Verilator --lint-only on every commit.
Where you'll see this
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Code a linter would flagVerilog: edit and run
Three lint warnings in three lines.
verilator --lint-only -Wall design.vTest what you just read
1. Lint runs...
Static check.