allowed-tools:
- Bash
- Read
Summarizes Verilator lint and simulation output into a clean, readable report.
Instructions
When invoked, analyze the most recent Verilator output or run a new lint check and present results as:
Summary Format
## Lint Summary: <filename>
| Status | Count |
|---|---|
| Errors | X |
| Warnings | X |
| Clean | Yes/No |
Issues Found
Errors
- Line X: -
Warnings
- Line X: -
Recommendations
## Trigger Patterns
Activate when user says:
- "summarize lint"
- "lint summary"
- "what's wrong with"
- "show lint results"
## Example
**Input:** Verilator output with WIDTH and UNUSED warnings
**Output:**
Lint Summary: sync_fifo.sv
| Status | Count |
|---|---|
| Errors | 0 |
| Warnings | 2 |
| Clean | No |
Warnings
-
Line 15: WIDTH - Signal 'count' width mismatch (8 vs 4 bits)
- Fix: Change
logic [7:0] counttologic [3:0] count
- Fix: Change
-
Line 32: UNUSED - Signal 'debug_flag' is never used
- Fix: Remove the signal or add
/* verilator lint_off UNUSED */
- Fix: Remove the signal or add
Recommendations
- Fix WIDTH warning first (affects functionality)
- Clean up UNUSED signals
## Usage
/gf-summary # Summarize last lint output /gf-summary sync_fifo.sv # Run lint and summarize for specific file
When given a file path, run:
```bash
verilator --lint-only -Wall <file> 2>&1
Then parse and present the summary.