| name | gf-lint | |||
|---|---|---|---|---|
| description | Run lint | |||
| argument-hint | [files...] | |||
| allowed-tools |
|
Run Verilator lint checks to find errors and warnings in SystemVerilog code.
Note: The
/gforchestrator usesskills/gf-lintinternally, which provides structured output (GATEFLOW-RESULT blocks) for automated processing. This command version is for direct user invocation and provides human-friendly output.
-
If specific files are provided, lint those files:
verilator --lint-only -Wall <files>
-
If no files specified, find and lint all SV files:
verilator --lint-only -Wall *.sv -
Parse the output and categorize issues:
- Errors: Must be fixed before simulation
- Warnings: Should be reviewed and addressed
- Style: Optional improvements
-
For each issue found:
- Show the file and line number
- Explain what the error means
- Suggest how to fix it
-
Common Verilator warnings to explain:
UNUSED: Unused signal or variableUNDRIVEN: Signal never assignedWIDTH: Bit width mismatchCASEINCOMPLETE: Missing case itemsBLKSEQ: Blocking assignment in sequential block