Runs Vivado's RTL linter (synth_design -lint) to detect syntax errors, undriven signals, arithmetic overflow, and inferred latches before synthesis. Generates a markdown report with violations, code fixes, and UG901 references.
Ships in AMD Ross Agentic AI Assistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Runs Vivado's RTL linter (synth_design -lint) to catch design issues — syntax errors,
undriven signals, arithmetic overflow, inferred latches — before full synthesis.
Expected outcome: A markdown report with every linter violation, diff-formatted code fixes, resolution-guide-backed recommendations, and UG901 references.
Prerequisites:
synth_design without -lint$ARGUMENTS as project path if provided, otherwise use pwdvivado -mode batch -source — use vivadoExecute instead// text and /* text */ are comments-file option — always use synth_design -lint -file $path-name switch — GUI-only; use -file in batch mode.rpt file directly — always run parse_lint_report.py first to
produce the canonical CSV, then read the CSV. The .rpt ASCII table has edge cases
(literal | in fields, multi-line cells) that ad-hoc parsing will mishandle.Anti-pattern to avoid: Vivado reported "Total of 0 linter message(s) generated" but agent added a "Duplicate Module Declaration" error by misreading
endmodule // topmodule top(a,b,clk,out);— the text after//is a comment. Trust Vivado's output. If Vivado says 0 violations, report 0 violations.
Anti-pattern to avoid: Agent read the
.rptASCII table directly withread_fileand reasoned over pipe-delimited columns instead of runningparse_lint_report.py. While the violation list happened to be correct, this bypasses the robust parser that handles edge cases (literal|in ASSIGN-1/2 fields, multi-line cells, T1/T2 suffix extraction). Always run the Python parser first — the CSV is the single source of truth for all downstream steps.
Use vivadoExecute for ALL Vivado commands. Before executing, load it:
tool_search_tool_regex with pattern "vivado".
Execute steps sequentially in this exact order.
Detect project (.xpr) vs non-project mode. TCL: tcl-reference.md § Step 1
Project mode: Open project, get part from get_property part [current_project].
Honor get_property top [current_fileset] first — only if empty, fall back to find_top
(UG835) and present multiple candidates to the user.
Non-project mode: Glob .v, .sv, .vhd, .vhdl files. Recursively discover
header directories (.vh, .svh, .h) for include_dirs. Read files with correct
flags (read_verilog -sv for .sv). Run update_compile_order -fileset sources_1,
then find_top to get ranked top-module candidates.
If find_top returns multiple candidates: Stop and ask the user to confirm/select
the correct top module before proceeding.
Verify: Project/non-project detected, part number available, top module confirmed.
Create vivado_agentic_ai_reports/rtl-lint/ under the project directory.
TCL: tcl-reference.md § Step 2
Verify: Directory exists and is writable.
Execute synth_design -top $top_module -part $part_number -lint -file $lint_report_file.
Then verify $lint_report_file exists and is non-empty.
TCL: tcl-reference.md § Step 3
Verify: synth_design -lint succeeded, $lint_report_file non-empty, design stays elaborated.
This step is required for ALL Vivado versions. Do NOT skip it.
$lint_csv_format = true): The lint report is already a CSV — use it directly.$lint_csv_format = false): Run parse_lint_report.py
via exec python3 in TCL to convert the .rpt into the canonical 7-column CSV.
TCL: tcl-reference.md § Step 4Never read or parse the .rpt file directly. The .rpt uses an ASCII table format
with edge cases (literal | in field values, multi-line cells) that the Python parser
handles robustly via fixed column-position slicing. Always produce the CSV first, then
read it with read_file.
Fallback exception (Vivado < 2026.1 only): If the Python parser produces an
empty CSV but Vivado's output contains "Total of X linter message(s) generated"
where X > 0, the parser failed to extract the table. In this case — and only in
this case — the agent may read the .rpt file directly with read_file and parse the
"2. Expanded" ASCII table manually.
If X = 0, the empty CSV is correct — do not fall back.
The CSV is the single source of truth for all downstream steps (grouping, counting, report generation). One line = one violation. Empty file = 0 violations.
Only report violations that appear in the CSV — never fabricate rows.
Headerless CSV. Split each line on , into exactly 7 positional fields:
| Col | Field | Use |
|---|---|---|
| 0 | rule_id | Dispatch to violation handler; group for "By rule ID" summary. May have (T1)/(T2) suffix. |
| 1 | description | Human-readable message in report |
| 2 | rtl_name | Signal/instance name. Empty for INFER-2, ASSIGN-14. |
| 3 | info | Bit index (T1), signal count (T2), port name (ASSIGN-12), operator (ASSIGN-1/2), or N/A |
| 4 | module | Parent module name; group for "By module" context |
| 5 | file_name | Filename only (not full path) — resolve to absolute path for read_file |
| 6 | line_number | Source line — use for read_file(path, line-5, line+5) and report links |
Special characters in field[2]: \. (SV hierarchy separator), [] (bus indices),
\| (bitwise OR in ASSIGN-1/2), empty string (adjacent commas for INFER-2, ASSIGN-14).
Rules ASSIGN-5, ASSIGN-6, ASSIGN-9, ASSIGN-10 emit two row types. Both count toward the total.
T1 — per-signal: field[0] has (T1) suffix. field[2] = signal name,
field[3] = first affected bit index.
ASSIGN-5 (T1),Bit(s) not assigned,signal_name,14,module,file.sv,20
T2 — aggregate: field[0] has (T2) suffix. field[2] = module/hierarchy name
(not a signal), field[3] = count of affected signals.
ASSIGN-5 (T2),Bit(s) not assigned,module_name,118,hierarchy,file.sv,0
Report as: "118 signals with unassigned bits in module_name".
For field[3] > 50, recommend synth_design -lint -verbose for detail.
Non-ASSIGN rules (INFER-1/2/3, RESET-2, ASSIGN-2, ASSIGN-14): field[3] = N/A.
INFER-2,Incomplete case statement,,N/A,module_name,file.sv,100
Use the agent's read_file tool to read the CSV — do NOT use TCL, shell commands,
or terminal scripts for parsing or grouping. The agent reads the text and reasons over
the comma-separated fields directly.
read_file (for large files, read in batches of ~500 lines)(T1)/(T2) suffix) → "By rule ID" summary with countsget_files -filter {NAME =~ */field[5]}read_file(resolved_path, field[6]-5, field[6]+5) to get real code contextVerify: Line count in CSV matches Vivado's stated total.
The following strategy applies to every lint run, regardless of violation count. The depth of each element scales with the size of the report — a 5-violation design gets a compact version; a 6,000-violation design gets full hotspot tables and tiered recommendations.
Summary tables: Always include two summary views:
Critical-first prioritization: Always address CRITICAL WARNINGs individually with full fix recommendations (including real source code — see Step 5). For WARNINGs and INFO:
200 → report all CRITICALs individually; for WARNINGs, show representative examples per rule and group the rest with counts
At every tier, every code example shown — whether for an individual violation or a representative example — must use real source code read from the original RTL file. "Representative" means you pick one actual violation from the group and show its real code; it does not mean fabricating a generic snippet.
Waiver recommendations: For high-count systemic patterns (e.g., RESET-2 on every
register in a VHDL design that uses FPGA initialization instead of async reset),
recommend create_waiver with clear justification. Signal when bulk waivers are
appropriate vs when individual fixes are needed.
Actionable tiers: Structure the Recommendations section as:
For each violation reported individually, and for each representative example chosen from a grouped set (per Step 4b thresholds):
get_files -filter {NAME =~ */field[5]}read_file(resolved_path, field[6]-5, field[6]+5) for ±5 lines of contextresolution/<RULE-ID>.md (strip T1/T2 suffix from field[0])read_file, apply fix template from guideViolation handler details: See violation-handlers.md for per-rule-ID instructions (fix strategies, alternative options, IEEE references).
Formatting rules:
diff syntax for all code blocks (never verilog/vhdl)- line must have inline comment explaining removal+ line should have inline comment explaining fixReport templates: See examples/report-violations.md and examples/report-clean.md.
Save report to: vivado_agentic_ai_reports/rtl-lint/rtl_lint_report.md
Verify: Report file > 1KB, violation count matches Vivado output exactly.
"Total of X linter message(s) generated"| Input | Type | Default | Description |
|---|---|---|---|
| project_path | path | pwd (or $ARGUMENTS) | Project directory or workspace root |
| top_module | string | Auto-detect from .xpr | Top-level module name |
| part_number | string | Auto-detect or xc7k70tfbg676-2 | Target FPGA part |
| report_dir | string | vivado_agentic_ai_reports/rtl-lint | Output directory |
| severity_filter | enum | ALL | Minimum severity: CRITICAL, WARNING, INFO, ALL |
Location: vivado_agentic_ai_reports/rtl-lint/
vivado_agentic_ai_reports/
└── rtl-lint/
├── lint_report.rpt ← Raw Vivado linter output
└── rtl_lint_report.md ← AI-generated analysis with fixes
| File | Purpose |
|---|---|
| tcl-reference.md | TCL command blocks for all workflow steps |
| violation-handlers.md | Per-rule-ID fix instructions and dispatch table |
| report-format.md | Diff syntax rules, file link format, section template |
| resolution-guide.md | Resolution guide workflow and available guides list |
| examples/report-violations.md | Example report with violations |
| examples/report-clean.md | Example report for clean design |
resolution/<RULE-ID>.md | Individual validated fix templates |
Access via vivado_doc_search tool:
| Version | Date | Changes |
|---|---|---|
| 2.1.0 | 2026-03-11 | Fixed violation handler descriptions; added INFER-1/2/3, CLOCK-1 handlers; created INFER-3 resolution guide; added T1/T2 parsing docs; added high-violation-count scalability strategy |
| 2.0.0 | 2026-03-10 | Restructured per Anthropic skill best practices; extracted supporting files |
| 1.1.0 | 2026-03-10 | Promoted to standalone skill (moved out of rtl-assistant) |
| 1.0.0 | 2026-01-16 | Converted to standardized template format |
| 0.9.0 | 2025-12-01 | Added vivado_doc_search integration for documentation |
| 0.8.0 | 2025-11-15 | Initial release as rtl-assistant subskill |
examples/report-clean.md (opens in a new tab)examples/report-violations.md (opens in a new tab)parse_lint_report.py (opens in a new tab)report-format.md (opens in a new tab)resolution-guide.md (opens in a new tab)resolution/ASSIGN-1.md (opens in a new tab)resolution/ASSIGN-10.md (opens in a new tab)resolution/ASSIGN-12.md (opens in a new tab)resolution/ASSIGN-14.md (opens in a new tab)resolution/ASSIGN-2.md (opens in a new tab)resolution/ASSIGN-3.md (opens in a new tab)resolution/ASSIGN-5.md (opens in a new tab)resolution/ASSIGN-6.md (opens in a new tab)resolution/ASSIGN-7.md (opens in a new tab)resolution/ASSIGN-8.md (opens in a new tab)resolution/ASSIGN-9.md (opens in a new tab)resolution/CLOCK-1.md (opens in a new tab)resolution/INFER-1.md (opens in a new tab)resolution/INFER-2.md (opens in a new tab)resolution/INFER-3.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vivado, rtl-lint, hdl-checking, fpga-design, synthesis-precheck
/amd-ross-agentic-ai-assistant:vivado-rtl-lint [project-path]from AMD Ross Agentic AI Assistant
npx claudepluginhub xilinx/ross-ai-assistant --plugin amd-ross-agentic-ai-assistant50 skills in this plugin
/hls-architectConvert input code to a multi-stage HLS dataflow, validate with the other hls skills, then hand off to optimize./hls-array-to-streamAnalyze whether a given C/C++ code snippet follows the recommended coding style for array-to-stream conversion in Vitis HLS. Keywords: array, stream, HLS, pragma, ap_fifo, axis, interface/hls-burst-inferenceAnalyze whether burst inference optimization can be applied to a given C/C++ code snippet in Vitis HLS. Keywords: burst, HLS, pragma, m_axi, AXI, memory, optimizationOther plugins' skills for the same job