shinei-nouzen-arch/fpga-agent/vivado-debug

Claude Code and agent skill by shinei-nouzen-arch/fpga-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill when the user needs help with Vivado in-system debugging, hardware programming, or debug core configuration. This includes ILA (Integrated Logic Analyzer) configuration and trigger strategies, VIO (Virtual I/O) usage for signal monitoring and control, JTAG-to-AXI Master for AXI transaction generation, mark_debug attribute and debug probing flows (Netlist Insertion, HDL Instantiation), Set Up Debug Wizard, ILA cross-trigger architecture, debug core timing impact and mitigation, Vivado Hardware Manager operation, FPGA/SoC device programming, Versal debugging architecture (AXI4 Debug Hub, CIPS integration), SVF file programming, debug clock requirements, and common debug error troubleshooting. This skill provides debugging strategy and decision-making knowledge — for TCL command execution use vivado-tcl, for implementation strategies use vivado-impl, for timing analysis use vivado-analysis.

Install

npx vskill@latest install shinei-nouzen-arch/fpga-agent/vivado-debug

SKILL.md

Vivado Programming & Debugging Guide

Based on UG908 (v2025.2). This skill helps choose debug strategies, configure debug cores, and troubleshoot hardware debugging. For complete command syntax, see REFERENCE.md. For TCL execution, use vivado-tcl.

Debug Core Selection

Choose debug cores based on what you need to observe or control:

Debug CoreVersionPurposeKey Capability
ILA (Integrated Logic Analyzer)v6.2Trigger on events and capture data at system speedsWaveform capture, advanced triggers, storage qualification
VIO (Virtual Input/Output)v3.0Monitor or control signals at JTAG scan ratesReal-time signal read/write, no waveform capture
JTAG-to-AXI Masterv1.2Generate AXI transactions to interact with AXI slave coresRead/write AXI Full and AXI Lite interfaces
ILA Cross-Trigger(ILA feature)Synchronize triggers between ILA cores or between ILA and processorCross-clock-domain trigger coordination

Decision guide:

Need to capture signal waveforms at full speed?
YES --> ILA
NO --> Need to read/write signals in real-time?
YES --> VIO (low bandwidth, JTAG rate)
NO --> Need to read/write AXI slave registers?
YES --> JTAG-to-AXI Master
NO --> Need to coordinate triggers across clock domains?
YES --> ILA with Cross-Trigger enabled

Debug Probing Flow Selection

Four approaches to add debug cores, each with different trade-offs:

ScenarioFlowHow It WorksBest For
Tag signals in HDL, use wizard latermark_debug + Netlist InsertionAdd mark_debug attribute in VHDL/Verilog. After synthesis, use Set Up Debug wizard to insert ILA cores.Flexibility to enable/disable debug without HDL changes
Mark signals in synthesized netlist GUIGUI Mark DebugRight-click nets in Netlist/Schematic views and select Mark Debug. Use Set Up Debug wizard.Quick signal selection without modifying source code
Automated scripted flowTCL AutomationUse set_property to set mark_debug, then create_debug_core / connect_debug_port TCL commands.Repeatable, version-controlled debug insertion
Full control in HDL sourceHDL InstantiationManually instantiate ILA/VIO/JTAG-to-AXI Master IP in HDL and connect to signals.Per-probe comparator control, cross-trigger ports, VIO cores

mark_debug Attribute

Vivado Synthesis Syntax

Verilog:

verilog
(* mark_debug = "true" *) wire [7:0] char_fifo_dout;

VHDL:

vhdl
attribute mark_debug : string;
attribute mark_debug of char_fifo_dout: signal is "true";

Valid values: "TRUE" or "FALSE" (the "SOFT" value is not supported by Vivado synthesis).

config_flows -mark_debug Modes

Control MARK_DEBUG behavior post-synthesis without modifying source files:

ModeSynthesis BehaviorImplementation BehaviorUse When
enable (default)Do not optimize MARK_DEBUG netsDo not optimize MARK_DEBUG netsActive debugging, need nets preserved
disableFreely optimizeFreely optimizeProduction build, remove all debug overhead
synthesis_onlyDo not optimize (nets available at start of impl)Freely optimize during implWant debug net availability but allow impl optimization
Debug Net Icons in Vivado IDE
Hollow green icon = MARK_DEBUG set, NOT connected to any ILA core
Full green icon = MARK_DEBUG set, connected to an ILA core
Yellow icon = No MARK_DEBUG on net, but connected to an ILA core

ILA Configuration Decisions

Data Depth Selection

The C_DATA_DEPTH property controls how many samples the ILA stores. Larger depth consumes more Block RAM:

C_DATA_DEPTHSamplesBRAM ImpactRecommended Use
1024 (default)1KLowInitial debug, quick trigger verification
20482KLow-MediumShort protocol sequences
40964KMediumTypical protocol debug
81928KMedium-HighLonger event sequences
1638416KHighMulti-phase protocol analysis
3276832KHighRare event capture with large pre/post-trigger window
6553664KVery HighExtended capture, ensure BRAM budget allows
131072128KVery HighMaximum capture depth, significant resource cost

Rule of thumb: Start with 1024. Increase only when you need more pre/post-trigger context. Each doubling roughly doubles BRAM usage per probe bit.

Key ILA Properties Decision Table
PropertyDefaultSet to TRUE WhenImpact
C_ADV_TRIGGERfalseNeed state-machine-based triggers, counter triggers, or range triggersAdds trigger logic resources
C_EN_STRG_QUALfalseNeed basic capture control (filter which samples are stored)Uses 1 comparator for capture control
C_INPUT_PIPE_STAGES0Timing violations on ILA probe inputs; increase to 1-6Adds FF pipeline stages, improves timing at cost of sample latency
C_TRIGIN_ENfalseNeed cross-trigger input (from another ILA or processor)Adds TRIG_IN/TRIG_IN_ACK ports
C_TRIGOUT_ENfalseNeed cross-trigger output (to another ILA or processor)Adds TRIG_OUT/TRIG_OUT_ACK ports
C_MEMORY_TYPE (Versal only)0 (BRAM)High BRAM utilization, want to use UltraRAM instead0=BRAM, 1=URAM; URAM can ease BRAM timing
Probe Configuration: Data / Trigger / Both

Each probe port can be configured independently:

Probe TypeCaptures DataParticipates in TriggerBRAM UsageUse When
Data and TriggerYesYesFullNeed to both see and trigger on signal (most common)
Data OnlyYesNoFullOnly need to see signal values, not trigger on them
Trigger OnlyNoYesReducedOnly need to trigger on signal, do not need waveform display

Tip: Configuring wide buses as "Trigger Only" when you do not need their waveform significantly reduces BRAM consumption.

Match Units (Comparators)
  • Range: 1 to 16 comparators per probe (C_ALL_PROBE_SAME_MU_CNT)
  • If C_ADV_TRIGGER=false and C_EN_STRG_QUAL=false: can be 1-16
  • If C_ADV_TRIGGER=false and C_EN_STRG_QUAL=true: must be 2-16 (1 reserved for capture control)
  • If C_ADV_TRIGGER=true and C_EN_STRG_QUAL=false: can be 1-16
  • If C_ADV_TRIGGER=true and C_EN_STRG_QUAL=true: must be 2-16
  • Maximum comparators allowed per ILA: 1024
  • If Capture Control is enabled, you have 1 to 15 comparators (1 reserved)

Important: In the netlist insertion flow, all probes share the same number of comparators. Use HDL instantiation flow to set different comparator counts per probe.

ILA Cross-Trigger

Architecture

Cross-triggering enables trigger coordination between ILA cores in different clock domains, or between an ILA core and a processor (e.g., Zynq-7000 SoC).

+------------------+ +------------------+
| ILA 1 | | ILA 2 |
| | | |
| trig_in <-----+------------------+-- trig_out |
| trig_in_ack ---+------------------+-> trig_out_ack |
| | | |
| trig_out ------+------------------+-> trig_in |
| trig_out_ack <-+------------------+-- trig_in_ack |
+------------------+ +------------------+

Requirements:

  • Enable C_TRIGIN_EN and/or C_TRIGOUT_EN at core generation time
  • Use HDL instantiation method to connect TRIG_IN/TRIG_OUT ports to design nets
  • The logic driving trig_in must be synchronous to the ILA clock
Cross-Trigger Timing
SignalLatencyNotes
trig_in --> trig_in_ack1 clock cycleACK asserted 1 clk after trig_in asserts
trig_in (or trigger condition) --> trig_out9 clock cyclesTRIG_OUT asserted 9 clks after trigger condition met
trig_in_ack / trig_out_ack de-assertWhen trigger de-assertsACK signals go low only when trigger signals are de-asserted

Behavior: TRIG_OUT remains HIGH until TRIG_OUT_ACK is received. If TRIG_OUT_ACK is tied to LOW, TRIG_OUT remains HIGH until the user re-arms the ILA. Only TRIG_OUT goes LOW if TRIG_OUT_ACK is tied to LOW.

Cross-Trigger Use Cases
  • Trigger ILA in slow clock domain from event detected in fast clock domain
  • Trigger ILA capture from a software breakpoint on Zynq/Versal processor
  • Chain multiple ILA cores to capture a sequence of events across the design

VIO Usage Guide

The VIO (Virtual Input/Output) core monitors and controls signals at JTAG scan rates (not system speed).

Port Types
Port DirectionHardware PerspectiveUse In VivadoTypical Use
Input portsDirectly connected to design signals to monitorRead values in VIO Dashboard (periodically refreshed)Status indicators, counter values, state machine states
Output portsDrive signals into the design for controlWrite values from VIO Dashboard or TCLReset control, MUX select, enable signals, load values
Typical VIO Use Cases
  • Board bring-up: Toggle reset signals, enable/disable subsystems without recompiling
  • Status monitoring: Observe PLL lock, FIFO full/empty, error flags in real time
  • Stimulus injection: Drive test patterns into data paths at low speed
  • ILA trigger coordination: Use VIO output to gate an ILA trigger condition
  • Register access substitute: Read/write control registers when JTAG-to-AXI Master is not available
VIO Operating Model
VIO operates on set/commit and refresh/get model:
Write flow: set_property OUTPUT_VALUE <val> [get_hw_probes <probe>]
commit_hw_vio [get_hw_probes {<probe>}]
Read flow: refresh_hw_vio [get_hw_vios {hw_vio_1}]
get_property INPUT_VALUE [get_hw_probes <probe>]

Recommended refresh rate: 500 ms or longer (very small values make Vivado sluggish).

JTAG-to-AXI Master

Capabilities
  • Supports all memory-mapped AXI Full and AXI-Lite interfaces
  • 32-bit or 64-bit data width
  • Create and run read/write burst transactions via TCL
  • Queued operation: up to 16 read and 16 write transactions back-to-back
Typical Use Cases
  • Read/write peripheral registers without a processor
  • Verify AXI slave IP functionality during board bring-up
  • Inject data into AXI-connected BRAMs for testing
  • Debug AXI interconnect routing issues
Basic Transaction Flow
1. reset_hw_axi [get_hw_axis hw_axi_1]
2. create_hw_axi_txn read_txn [get_hw_axis hw_axi_1] \
-type READ -address 00000000 -len 4
3. run_hw_axi [get_hw_axi_txns read_txn]
4. report_hw_axi_txn [get_hw_axi_txns read_txn]

Important: If you reprogram the device, all existing jtag_axi transactions are deleted and must be recreated.

Versal Debug Architecture

Versal adaptive SoC uses a different debug infrastructure than 7 series/UltraScale/UltraScale+.

CIPS Requirement

Every Versal design with debug cores requires a Control, Interface, and Processing System (CIPS) IP instance in a block design:

  1. Create Block Design in IP Integrator
  2. Add CIPS IP to the canvas
  3. Generate HDL wrapper
  4. Proceed with Netlist Insertion, HDL Instantiation, or IP Integrator debug flow
  5. During opt_design, AXI4 Debug Hub is auto-inserted and connected
AXI4 Debug Hub

The AXI4 Debug Hub replaces the BSCAN-based debug hub used in previous architectures. It connects the CIPS AXI4 interface to debug cores via AXI4-Stream.

Supported debug cores on Versal:

  • AXI4-Stream ILA (AXIS-ILA) -- includes ILA and System-ILA functionality
  • AXI4-Stream VIO (AXIS-VIO)
  • PCI Express Link Debugger
Three Connectivity Methods

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
133
Repository forks
16
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 May 2026, 5 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/shinei-nouzen-arch/fpga-agent/vivado-debug/badge)](https://verified-skill.com/skills/shinei-nouzen-arch/fpga-agent/vivado-debug)

Something wrong with this skill or its page? Tell us.