Automates Vivado project revision control setup with a 5-step pipeline: detects project type (Standard, DFX, IPI BDC, Segmented Config), analyzes sources, exports components, captures settings, and generates build scripts for reproducible builds.
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 automates revision control setup for Vivado projects through a 5-step pipeline, plus an optional interactive Step 2.5 for preserving existing generated outputs. It works with Standard RTL-only projects, IPI Block Designs (including Block Design Containers), DFX (Partial Reconfiguration), and Versal Segmented Configuration projects.
The pipeline detects project type, analyzes source locations, exports components, captures settings, and generates a build script — producing a self-contained directory that can recreate the project from scratch.
Before running, the Vivado project must be open with:
All Tcl procedures live in helper-procedures/helper_scripts.tcl. Source this
file first in Vivado, then execute each step sequentially.
source <skill-path>/helper-procedures/helper_scripts.tcl
Run detect_project_flow to identify the project type. This returns a
flow_info dictionary needed by Step 3.
set flow_info [detect_project_flow]
set flow_type [dict get $flow_info flow_type]
Returns one of: "Standard", "DFX (Partial Reconfiguration)", "Segmented Configuration", "DFX + Segmented Configuration" — with optional "+ IPI BDC" suffix if Block Design Containers are detected.
For details on detection logic and edge cases, read detect-project-flow/REFERENCE.md.
Run analyze_source_locations to classify sources as Push Button (all local),
Remote (all external), or Mixed.
set scenario_info [analyze_source_locations]
set scenario [dict get $scenario_info scenario]
If scenario is "Remote", skip Step 3 entirely — sources live in external
repos and should not be duplicated.
For details, read analyze-source-locations/REFERENCE.md.
Ask whether to keep existing .gen outputs for selected IPs/BDs instead of
letting them be fully regenerated from Tcl on rebuild. This step does not
exist in older versions of this skill and is entirely opt-in. How to run it
depends on who's driving the pipeline:
Human typing directly into a live Vivado session (GUI Tcl console, or a
manually-driven batch session with a real tty) — as of 2026-09-21, you don't
need to do anything special: if you call Step 3 (export_all_sources)
without already having answered this yourself, it detects a real tty on
stdin and, if the project has anything eligible, prompts you automatically
before proceeding. You can still call prompt_preserve_outputs explicitly
beforehand if you prefer to control exactly when the prompt happens:
set preserve_selection [prompt_preserve_outputs]
{enabled 0 ips {} bds {} cache_dir {}} — Steps 3 and 5 then behave
exactly as before this feature existed.list_preservable_outputs) — including XCIs that live outside any Block
Design — and lets you pick which ones to preserve (all or a comma list).
This selection is mixed/partial across separate top-level items (some
standalone IPs/BDs preserved, others not) — that's the primary supported
case. It is not partial within a single BD: a BD is preserved as one
whole unit, and you cannot cherry-pick which of the IPs customized inside
it get preserved vs. regenerated (confirmed as an intentional scope cut,
not a bug — flagged as a possible Q4 enhancement)..gen output yet (never generated/synthesized),
export_all_sources warns and exports it normally instead of preserving
it — nothing to preserve yet is not a hard failure, but it also does not
silently create an incomplete cache entry.This proc blocks on gets stdin, so it only works with a real tty attached
— which is exactly the condition export_all_sources now checks
(_rc_stdin_is_tty) before auto-invoking it.
Automated CI / regression pipelines (run_pipeline.tcl-style harnesses)
— skip this step entirely and pass {} (the default) to Steps 3 and 5. That
preserves the old fully-automated 5-step behavior unchanged.
Agentic (an AI agent driving Vivado via Bash/batch-mode Tcl calls, chatting
with a human) — do not call prompt_preserve_outputs: its gets stdin
has no real tty to block on and will just read EOF, silently disabling
preservation with no visible prompt at all. Instead:
list_preservable_outputs (pure query, no stdin) to see what's eligible.build_preserve_selection $chosen_ips $chosen_bds $cache_dir with
the human's answers to get the preserve_selection dict.list_preservable_outputs returns nothing, skip asking — there's
nothing to preserve.set items [list_preservable_outputs]
# ... ask the human in conversation, then:
set preserve_selection [build_preserve_selection $chosen_ips $chosen_bds $cache_dir]
Pass the returned preserve_selection into Step 3 (export_all_sources).
For details, read
helper-procedures/REFERENCE.md.
Skip this step if Step 2 returned "Remote". Otherwise, export RTL, constraints,
IP (as Tcl via write_ip_tcl), Block Designs (as Tcl via write_bd_tcl),
simulation files, and data files to an organized directory.
Pass flow_info from Step 1 to enable DFX/Segmented Config-specific exports
(pblocks, DCPs, NoC solutions). Pass preserve_selection from Step 2.5 (or
omit it) to control per-IP/BD output preservation. If you omit it and stdin
is a real tty, export_all_sources prompts for it itself (see Step 2.5
above) rather than silently skipping preservation. For any IP/BD named in
preserve_selection, its own .srcs/.gen subtree (nothing else) is
copied into the external cache_dir the selection specifies — never into
export_dir/RevisionControl/ itself.
if {$scenario ne "Remote"} {
export_all_sources "RevisionControl" $flow_info $preserve_selection
}
For details on filtering rules, BD-IP handling, and DFX exports, read export-all-sources/REFERENCE.md.
Save all non-default project properties to a Tcl script that can restore them during rebuild.
file mkdir RevisionControl/Scripts
capture_project_settings "RevisionControl/Scripts/project_settings.tcl"
Captures: PART, BOARD_PART, TARGET_LANGUAGE, PR_FLOW, SEGMENTED_CONFIGURATION, TOP, VERILOG_DEFINE, synthesis/implementation directives, and file-specific properties (VHDL LIBRARY, IS_GLOBAL_INCLUDE).
For details, read capture-project-settings/REFERENCE.md.
Create build.tcl for one-command project recreation.
generate_build_script "RevisionControl/Scripts/build.tcl" "RevisionControl" $scenario_info
The generated script uses relative paths, imports local sources (import_files),
references remote sources in-place (add_files), recreates IP and BD from Tcl
scripts, creates OOC IP runs, generates BD targets, sources project_settings.tcl,
and finalizes compile order. For any IP/BD preserved in Step 2.5, it instead
restores that item's .srcs/.gen from the external cache directory and
add_files/read_ip/read_bds it directly — no write_ip_tcl/write_bd_tcl
replay, no resynthesis — while every non-preserved IP/BD still goes through
the standard Tcl-regeneration path. This branching is per-IP/BD, never global
for the whole project. If the cache directory (or a specific preserved
item's data inside it) is missing at rebuild time, the generated script
hard-errors rather than silently falling back to regeneration.
For details, DFX RM ordering, and missing-.gen handling, read
generate-build-script/REFERENCE.md.
Step 1: detect_project_flow
→ flow_info dict (passed to Step 3)
Step 2: analyze_source_locations
→ scenario ("Push Button" / "Remote" / "Mixed")
→ If Remote: skip Step 3
Step 2.5: prompt_preserve_outputs (optional, interactive only)
→ preserve_selection dict {enabled, ips, bds, cache_dir} (passed to Step 3)
→ omitted/declined ⇒ {} ⇒ Steps 3 and 5 behave exactly as before this existed
→ if omitted AND stdin is a real tty AND something is eligible, Step 3
auto-calls this on your behalf (added 2026-09-21) instead of silently
defaulting to no preservation — no tty (CI/agentic) ⇒ unchanged
→ cache_dir must be an absolute path OUTSIDE the project (remote cache
only) — an invalid/missing path disables preservation for this export
Step 3: export_all_sources(dir, flow_info, preserve_selection)
→ Sources/ directory with RTL, IP, BD, Constraints (dir itself never
changes shape based on preserve_selection)
→ (only if preserve_selection selected something) each preserved item's
OWN .srcs/.gen subtree is copied into cache_dir — never into dir itself
Step 4: capture_project_settings(file)
→ project_settings.tcl
Step 5: generate_build_script(file, dir, scenario_info)
→ build.tcl (automated rebuild; restores any preserved item's .srcs/.gen
from cache_dir at rebuild time — hard-errors if cache_dir or a
preserved item's data inside it is missing)
RevisionControl/ exports next to the live Vivado project and its own
shape never changes based on whether Step 2.5 preservation was used —
it never contains <proj>.gen/, <proj>.srcs/, or <proj>.xpr from the
original project (those stay untouched where they are), and XPR is never
revision-controlled in any flow.
project_1.gen/ # live original Vivado project — sibling, untouched
project_1.srcs/
project_1.xpr
RevisionControl/
├── Sources/
│ ├── RTL/ # Verilog/SV/VHDL sources
│ ├── Constraints/ # XDC files (+ pblocks.xdc for DFX)
│ ├── IP/ # write_ip_tcl scripts — non-preserved standalone
│ │ # IPs only (no .xci copied); preserved IPs are
│ │ # skipped here entirely (see below)
│ ├── BD/ # write_bd_tcl scripts — non-preserved BDs only
│ │ # (no .bd copied); preserved BDs are skipped here
│ │ # entirely: a preserved BD never gets a BD Tcl
│ │ # (design.tcl-style), and any stale <bd>.tcl /
│ │ # <ip>.tcl left by an earlier export is deleted.
│ │ # Only exception: a BD/IP selected for preservation
│ │ # that has no .gen yet (or lives outside the
│ │ # project) is NOT preserved -- it warns and is
│ │ # exported as a normal non-preserved item.
│ ├── Simulation/ # Testbenches
│ ├── Data/ # .mem, .coe, .mif, .hex, .elf, .csv files
│ ├── Scripts/ # Tcl pre/post hook scripts
│ ├── Checkpoints/ # (DFX only) locked static DCPs
│ └── NoC/ # (Segmented Config only) .ncr files
└── Scripts/
├── project_settings.tcl
└── build.tcl
If Step 2.5 preserved anything, the only artifact is an external remote
cache directory — a path outside the project that the user supplied
(cache_dir in preserve_selection), never copied into RevisionControl/
and never git-tracked:
<cache_dir>/
└── project_1/
├── ip/
│ └── <ip_name>/
│ ├── srcs/ # copy of that IP's own .srcs directory (the .xci
│ │ # and any sibling files it had)
│ └── gen/ # copy of that IP's own .gen output directory
└── bd/
└── <bd_name>/
├── srcs/ # copy of that BD's own .srcs directory (the .bd,
│ # PLUS any nested per-instance ip/<name>/<name>.xci
│ # files customized only inside that BD)
└── gen/ # copy of that BD's own .gen output directory
Only the selected item's own .srcs/.gen subtree is copied — never the
whole project's generated tree, and never the .xpr. Copying the whole
per-BD .srcs directory (not just the lone <bd>.bd file) also means a
per-instance IP customized only inside a preserved BD is preserved too.
At rebuild time, generate_build_script's generated build.tcl reads
directly from this cache directory (an absolute path baked into build.tcl
at export time) and restores each preserved item's .srcs/.gen into the
newly created project's own tree before add_files/read_ip/read_bding
it — no write_ip_tcl/write_bd_tcl replay, no resynthesis. If the cache
directory, or a specific preserved item's data inside it, is missing at
rebuild time, build.tcl hard-errors and stops rather than silently
falling back to Tcl regeneration — preservation is an explicit opt-in, so a
missing cache is a setup problem to surface, not paper over.
For DFX projects, read dfx-revision-control/REFERENCE.md. Key requirement: In build.tcl, RM Block Designs must be sourced BEFORE the static design, or BDC instantiation fails.
For Segmented Config (Versal), read segmented-config-revision-control/REFERENCE.md. Key requirement: SEGMENTED_CONFIGURATION property must be captured and restored. Versal Gen2 devices (xcve2*, xcvp2*, xcvm2*) have this implicitly enabled.
Test the generated build script in a clean directory:
vivado -mode batch -source RevisionControl/Scripts/build.tcl
For DFX projects, configure Git LFS for DCP files:
git lfs track "*.dcp"
Vivado gives no built-in signal that a recreated project actually matches the original — a silently-skipped BD, a missing wrapper module, or a dropped run won't error until (or unless) synthesis/implementation is attempted. Two utility procedures close this gap:
# In the ORIGINAL project's session, right after export_all_sources:
capture_verification_manifest "RevisionControl/Scripts/verification_manifest.tcl" "RevisionControl"
# In the RECREATED project's session, after sourcing build.tcl:
verify_rebuild "RevisionControl/Scripts/verification_manifest.tcl"
verify_rebuild checks that all expected Block Designs, the top module (including
auto-managed wrapper modules with no physical source file), and all expected
runs are present, plus an IP-count sanity check — and prints a PASS/FAIL report.
For details, read
helper-procedures/REFERENCE.md.
If you need more information about specific Vivado Tcl commands used in this
skill (write_ip_tcl, write_bd_tcl, write_checkpoint, create_project, etc.),
use the vivado_doc_search MCP tool to search the Vivado documentation.
Relevant Vivado User Guides:
GP_FEEDBACK_RESOLUTION.md (opens in a new tab)README.md (opens in a new tab)analyze-source-locations/REFERENCE.md (opens in a new tab)capture-project-settings/REFERENCE.md (opens in a new tab)detect-project-flow/REFERENCE.md (opens in a new tab)dfx-revision-control/REFERENCE.md (opens in a new tab)export-all-sources/REFERENCE.md (opens in a new tab)generate-build-script/REFERENCE.md (opens in a new tab)helper-procedures/README.md (opens in a new tab)helper-procedures/REFERENCE.md (opens in a new tab)helper-procedures/helper_scripts.tcl (opens in a new tab)segmented-config-revision-control/REFERENCE.md (opens in a new tab)skill-card.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vivado, fpga, revision-control, build-scripts, project-portability
/amd-ross-agentic-ai-assistant:vivado-revision-controlfrom 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, optimization/hls-component-basic-infoGet Vitis HLS component basic informations for a given HLS component. The basic informations includes component name, source files, testbench files, include paths and top function/hls-cosim-reportGet Vitis HLS cosimulation report information for a given HLS component./hls-dataflowAnalyze whether a given C/C++ code snippet contains a canonical dataflow region for Vitis HLS. Keywords: dataflow, HLS, pragma, canonical, stream, PIPO, hls::taskOther plugins' skills for the same job