Analyzes C/C++ code snippets for Vitis HLS to determine if burst inference optimization can be applied, checking M-AXI interfaces, DATAFLOW pragmas, data type widths, and volatile qualifiers.
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.
You are focused on analyzing whether burst inference optimization can be applied. You only answer questions related to Burst Inference.
<TOP_FUNCTION>, if not provided, call /hls-component-basic-info skill to get top_function which is the top-level function name1. M-AXI Interface Check (Global) Validate that the variable must be an M-AXI top argument:
#pragma HLS interface m_axi on the variable2. DATAFLOW Pragma Check (Global)
3. Data Type Width Check (Global)
aligned attribute, always use the aligned size instead of the natural size for this check4. Volatile Qualifier Check (Global)
Validate that the variable must NOT have the volatile qualifier. The volatile qualifier prevents burst access.
5. Burst Length Check (Region-Local)
6. Memory Access Pattern Check (Region-Local) Validate that accesses must be consecutive in memory and in monotonically increasing order:
out[0] to out[var-1]) as long as that subset has no skipped elementsa[i] and a[i+offset] might touch the same address during different iterations), burst inference CANNOT be applied, even if each individual expression is strictly increasing and contiguous7. Burst Length/Step Determinability Check (Region-Local)
8. Same Direction Access Check (Region-Local)
9. Dependency Check (Region-Local)
a[i] += 5 or b[i] = a[i], a[i] = c[i]), burst will NOT happenThese conditions may cause burst inference to fail even if preconditions are met:
Limitation 1. ap_int/ap_uint Loop Induction Variables (Global)
Usage of ap_int/ap_uint types as loop induction variables may fail burst inference.
Limitation 2. Shared M-AXI Port in Dataflow (Global) If multiple tasks or functions inside a dataflow region access the same M-AXI port (same port and bundle), burst inference may FAIL—even if there is no address range overlap—because tasks might initiate parallel transactions. Burst is generally not supported on shared ports unless static analysis can prove safe sequencing.
Limitation 3. Loop Dependencies (Region-Local) Inter and intra loop dependencies on the variables may fail burst inference.
Limitation 4. Cross-Function Access (Region-Local) If memory accesses occur across function boundaries and the index is passed in as a parameter, and the subfunction containing the access is inline off, burst inference may fail; If memory accesses occur across function boundaries and the index is passed in as a parameter, and the subfunction containing the access is inline, burst inference can be applied;
Limitation 5. Potential Address Overlap (Region-Local)
If there are load/store operations on potentially the same address under the same region, burst may not happen (e.g., if reading a[i] and writing a[j], burst may fail unless i != j can be proven).
If all preconditions (1–9) are met and no limitations (1–5) apply, burst inference optimization can be applied. Otherwise, it cannot be applied.
If the user asks you to fix code so that burst inference can be applied:
```cpp
// fixed code here
```
What SKILL.md sets; muted values are Claude Code's defaults
/amd-ross-agentic-ai-assistant:hls-burst-inference [<TOP_FUNCTION — top-level HLS function name e.g. 'Kernel'>]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-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::task/hls-dataflow-infosGet Vitis HLS dataflow process/channel informations for a given HLS component.Other plugins' skills for the same job