Analyzes Vivado Oasys synthesis elaboration errors, critical warnings, and warnings from logs, then provides actionable RTL code fixes with diff-formatted patches.
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.
This skill analyzes Oasys synthesis elaboration diagnostics from Vivado and ties
every finding to the user's actual RTL. Messages appear as [Synth 8-XXX] in logs.
The runtime input may be:
.v, .sv, .vhd, .vhdl) and their project/file-list contextrunme.log, vivado.log, messages CSV, or pasted diagnosticThe skill covers parser, type-checker, and elaboration phases of synth_design and
reports:
This skill covers Oasys message IDs from testcases (synth_code_8_xxx_testcase/):
oasys_severity_lists.csv)Reference: oasys_severity_lists.csv for full message descriptions.
Use this skill when:
vivado.log, runme.log, or synth_1/runme.log contains Oasys elaboration messages.Do not use this skill when:
Minimum required input:
vivado.log, runme.log, or synth_1/runme.log), orUseful optional input:
Execute these steps sequentially in this exact order.
Determine operating mode and find the synthesis log.
Log Analysis Mode (default when user provides a log file path or log exists in workspace):
$ARGUMENTS is a .log file path, use it directlyfile_search("**/runme.log")
file_search("**/vivado.log")
file_search("**/*.log")
synth_1/runme.log > vivado.log > othersMCP Mode (when no log exists or user requests live analysis):
tool_search with query "vivado execute"synth_design — TCL in tcl-reference.md § Step 2Verify: Log file path is known and file exists.
Create the report directory inside the test case directory (same directory as the log file). This ensures each test case has its own self-contained report.
<test_case_dir>/vivado_agentic_ai_reports/rtl-elaboration-analysis/
Where <test_case_dir> is the directory containing the vivado.log (e.g.,
error/8_27/bcnmxd_vhdl_neg_DataTypeMap_DataTypeMap4/).
Use run_in_terminal to create: mkdir -p <test_case_dir>/vivado_agentic_ai_reports/rtl-elaboration-analysis
Or if in MCP mode: file mkdir <test_case_dir>/vivado_agentic_ai_reports/rtl-elaboration-analysis
Rule: Never create a single shared report directory at workspace root. Each test
case gets its own vivado_agentic_ai_reports/ alongside its log and source files.
Extract all elaboration messages from the log. Execute the parser:
python3 <skill_dir>/parse_elab_messages.py <log_file> vivado_agentic_ai_reports/rtl-elaboration-analysis/messages.csv
Where <skill_dir> is the path to this skill's directory.
If Python is unavailable, parse manually using grep_search on the log file:
^(ERROR|CRITICAL WARNING|WARNING):\s*\[Synth\s+8-\d+\]CSV column schema (with header row, 7 columns):
| Col | Field | Description |
|---|---|---|
| 0 | S.No | Sequential serial number (1-based) for cross-referencing with report |
| 1 | Severity | ERROR, CRITICAL WARNING, WARNING, or INFO |
| 2 | Msg_ID | Integer message ID from [Synth 8-XXX] |
| 3 | Message | Full message text |
| 4 | File | Source file path (may be empty) |
| 5 | Line | Source line number (0 if not available) |
| 6 | Language | VLOG or VHDL (detected from file extension) |
Verify: CSV exists. Row count (excluding header) matches message count from log.
Extract unique msg_id values (excluding INFO) from the CSV and classify each by
resolution availability. Write to:
vivado_agentic_ai_reports/rtl-elaboration-analysis/resolution_checklist.md
Procedure:
messages.csv (skip header row) and collect unique msg_id values (skip INFO)resolution_checklist.md with two sections:# Resolution Checklist
## HAS RESOLUTION FILE
| ID | Severity | Short Name | Resolution File | Loaded? |
|----|----------|------------|-----------------|--------|
| <id> | <sev> | <name> | resolution/<file>.md | [ ] |
## NO RESOLUTION FILE (use vivado_doc_search or own analysis)
| ID | Severity | Description | Source |
|----|----------|-------------|--------|
| <id> | <sev> | <text> | vivado_doc_search / own analysis |
Verify: Every unique WARNING/ERROR/CRITICAL WARNING msg_id from the CSV
appears in exactly one section.
Read the CSV and organize messages:
4a. Severity grouping:
4b. Actionability classification:
For each message, look up msg_id in message-handlers.md:
resolution/uncovered-synth-messages.md4c. File hotspot analysis:
4d. Dependency detection:
Failed to read, second declaration ignored, syntax error near) each
still get their own ### section in Step 6 (may be brief and marked
Cascade of 8-XXX, but must be present).Process every non-INFO message in messages.csv. The folder/log may be named after one "target" ID, but that NEVER limits the report to that ID alone — all messages in the CSV are in scope. For each actionable message (Tier 1 and Tier 2), in priority order (errors first):
Read RTL source context:
file_search("**/<filename>")read_file(resolved_path, line-10, line+10)Look up message handler (MANDATORY):
resolution/<file>.md
with read_file BEFORE writing any fix. Follow the guide's patterns exactly.vivado_doc_search for UG901 guidance.[x] in the checklist.For Tier 2 — inspect surrounding code:
Generate diff-formatted fix:
- old_code // <- problem description
+ new_code // <- fix description
For Tier 3 — write advisory:
Scaling — Branch Decision:
Split the CSV into per-file message reports:
cd vivado_agentic_ai_reports/rtl-elaboration-analysis
python3 <skill_dir>/csv_to_per_file_parts.py messages.csv ./
Generated files:
messages_by_file.txt — Summary with error counts + file rankingsmessages_by_file_part1.txt — Easiest files (start here)messages_by_file_partN.txt — Progressive difficultyLaunch one subagent per part file. Each subagent processes up to 20 RTL files.
For each file in the part:
file_searchSave outputs to file_analysis/<filename>_analysis.md
The workflow is incomplete until REPORT.md exists.
Save to: vivado_agentic_ai_reports/rtl-elaboration-analysis/REPORT.md
Report structure:
# RTL Elaboration Analysis Report
## Summary
| Severity | Count | Actionable | Advisory |
|----------|-------|------------|----------|
| Error | N | N | N |
| Critical Warning | N | N | N |
| Warning | N | N | N |
## File Hotspots
| File | Errors | Crit. Warnings | Warnings | Total |
|------|--------|----------------|----------|-------|
## Message Type Distribution
| ID | Severity | Count | Description | Actionable? |
|----|----------|-------|-------------|-------------|
## Fixes — Errors (Priority 1)
### [Synth 8-XXX] <description>
**CSV S.No:** <serial number(s) from messages.csv>
**File:** [file.v:42](../../path/to/file.v#L42)
**Message:** <full message text>
**Root Cause:** <explanation>
**Problematic Code:**
\```diff
context line
- problematic line // <- what's wrong
context line
\```
**Recommended Fix:**
\```diff
context line
+ fixed line // <- what changed and why
context line
\```
**Corrected Code (paste-ready):**
\```verilog
// Final corrected code only - no diff markers. Paste this over the flagged
// line(s) in <file>. Language tag = verilog / systemverilog / vhdl per the
// CSV Language column.
fixed line
\```
> You can copy the code block above and paste it directly into `<file>` at line(s)
> `<N>` to apply this fix in your RTL.
**Rationale:** <why this fix is correct>
## Fixes — Critical Warnings (Priority 2)
...
## Fixes — Warnings (Priority 3)
...
## Advisory — Design Decisions Required
...
## Recommendations
### Immediate (fix now)
### High-Impact Quick Wins
### Design Review Items
### Accept/Waive
Formatting rules:
diff block showing the change,
and (b) a Corrected Code (paste-ready) block that contains ONLY the final
fixed code with NO diff markers (+/-/space) and NO @@ hunk headers, so the
user can copy it directly into the RTL.Language column:
VLOG -> ```verilog (or ```systemverilog for SV), VHDL -> ```vhdl.> You can copy the block above and paste it directly into \` at line(s) to apply this fix.`
Every recommended fix in every generated report must carry this line.```diff, ```verilog,
```vhdl) with NO backslash escaping. The \``shown in this skill's template is only escaped so the example nests inside this doc; never write`` before a
backtick in the actual report, or the code block will not render.### section with File link, Problematic Code (diff block),
Recommended Fix (diff block), and a Corrected Code (paste-ready) block. Never
demote a message to only a Message-Type-Distribution table row or an Advisory
bullet in place of its ### section.### section that includes an Occurrences table listing every occurrence
(S.No + instance/signal/line). This keeps the section count sane WITHOUT dropping
any message — every row must still appear in some section's Occurrences list.### section; it may be brief and
state Cascade of 8-XXX — resolved by that fix, but it must exist.### section count == non-INFO
rows in messages.csv, or (b) when identical repeats are grouped by unique ID, the
total occurrences listed across all sections == non-INFO rows. If any row is
unaccounted for, a message was dropped — add it before finishing. This is a HARD
STOP; do not report completion while rows are unaccounted for.### section (not just
a table row or Advisory bullet)messages.csv (Step 3) and resolution_checklist.md (Step 3.5) exist in the
report directory[x] (loaded)```diff/```verilog/```vhdl)
with NO backslash before any backtick — grep the report for ``` and fix any hit.This step comes AFTER the report is written. The REPORT.md documents the original problematic code and the recommended fix. Only after the report is complete should the fixes be applied to the actual RTL source files.
replace_string_in_file to make each edit- prefix and the fix with + prefixWorkflow order is critical:
message-handlers.md and the referenced resolution/ guide for each ID.This skill expects these helper files beside this file:
message-handlers.mdresolution-guide.mdreport-format.mdtcl-reference.mdparse_elab_messages.pycsv_to_per_file_parts.pyresolution/If any file is missing, continue with best-effort analysis from message.txt
If any file is missing, continue with best-effort analysis from the log and actual
RTL source, and clearly identify the missing asset in the report.
README.md (opens in a new tab)csv_to_per_file_parts.py (opens in a new tab)message-handlers.md (opens in a new tab)parse_elab_messages.py (opens in a new tab)report-format.md (opens in a new tab)resolution-guide.md (opens in a new tab)resolution/8-10021.md (opens in a new tab)resolution/8-10033.md (opens in a new tab)resolution/8-10039.md (opens in a new tab)resolution/8-10042.md (opens in a new tab)resolution/8-10043.md (opens in a new tab)resolution/8-10047.md (opens in a new tab)resolution/8-10059.md (opens in a new tab)resolution/8-10093.md (opens in a new tab)resolution/8-10095.md (opens in a new tab)resolution/8-10097.md (opens in a new tab)resolution/8-10140.md (opens in a new tab)resolution/8-10149.md (opens in a new tab)resolution/8-10157.md (opens in a new tab)resolution/8-10180.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vivado, oasys-synthesis, rtl-fixes, synthesis-log-analysis, fpga
/amd-ross-agentic-ai-assistant:vivado-rtl-elaboration-analysis [RTL/project path and optional runme.log or vivado.log]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