Automated summary
Expert skill for converting C/C++ algorithms into optimized RTL for FPGA acceleration using High-Level Synthesis.
Strengths
- Covers core HLS pragmas (PIPELINE, UNROLL, ARRAY_PARTITION, DATAFLOW) and AXI interface synthesis modes.
- Provides an iterative workflow from baseline implementation through synthesis-report analysis to targeted QoR improvements.
- Addresses fixed-point arithmetic (ap_fixed, ap_int) and memory-inference coding practices.
- Ties into named processes such as hls-development, hardware-software-codesign, and ip-core-integration.
Limitations
- Assumes the Vitis HLS (Xilinx/AMD) toolchain and does not cover other vendors' HLS tools.
- Stays at guidance level: no complete code templates or automated report-parsing scripts.
- Does not cover RTL verification, testbench construction, or co-simulation.
Use when turning a C/C++ algorithm into FPGA RTL with Vitis HLS and tuning initiation interval, latency, resources, or interfaces.
Avoid for non-Xilinx/AMD HLS targets or for RTL verification/UVM testbench work unrelated to synthesis.
Security analysis
CautionThe skill is instructional and focused on HLS/FPGA development. It does not contain dangerous commands, credential exfiltration, obfuscated payloads, or safety-disabling instructions. Because it grants Bash and file-write capabilities, it is best treated as caution rather than fully safe.
- •Declares Bash, Write, and Edit tools, which allow arbitrary command execution and file modification, though the skill content itself contains no destructive or exfiltrating instructions.
Examples
This C loop nest currently reports II=8 in Vitis HLS. Help me restructure it and apply the right PIPELINE and ARRAY_PARTITION pragmas to reach II=1 without exceeding my DSP budget.Convert this C image-filter function into HLS-synthesizable code with AXI4-Stream input/output ports and DATAFLOW between the processing stages.My HLS synthesis report shows excessive latency and LUT usage. Analyze the likely bottlenecks and suggest targeted pragma or code changes, then describe how to verify the improvement.name: hls-cpp-to-rtl description: Expert skill for C/C++ to RTL conversion using High-Level Synthesis tools allowed-tools:
- Read
- Write
- Edit
- Glob
- Grep
- Bash
HLS C/C++ to RTL Skill
Overview
Expert skill for High-Level Synthesis (HLS) development, converting C/C++ algorithms to optimized RTL implementations for FPGA acceleration.
Capabilities
- Write HLS-synthesizable C/C++ code
- Apply Vitis HLS pragmas (PIPELINE, UNROLL, ARRAY_PARTITION)
- Optimize loop initiation interval (II)
- Configure HLS interface synthesis (AXI-MM, AXI-Stream, AXI-Lite)
- Analyze HLS reports and iterate on design
- Apply dataflow optimization
- Handle fixed-point arithmetic (ap_fixed, ap_int)
- Integrate HLS IP into Vivado block designs
Target Processes
- hls-development.js
- hardware-software-codesign.js
- ip-core-integration.js
Usage Guidelines
Code Structure
- Use static arrays for memory inference
- Avoid dynamic memory allocation
- Structure loops for pipeline optimization
- Use ap_int/ap_uint for arbitrary precision
Key Pragmas
#pragma HLS PIPELINE II=1- Pipeline loops for throughput#pragma HLS UNROLL factor=N- Unroll loops for parallelism#pragma HLS ARRAY_PARTITION- Memory partitioning#pragma HLS DATAFLOW- Task-level parallelism#pragma HLS INTERFACE- Port protocol specification
Interface Synthesis
- AXI4-Lite: Control registers and scalar arguments
- AXI4 Memory-Mapped: Large data arrays
- AXI4-Stream: Streaming data interfaces
- ap_none/ap_vld/ap_hs: Simple handshake protocols
Optimization Flow
- Baseline functional implementation
- Analyze synthesis report
- Identify bottleneck (II, latency, resources)
- Apply targeted optimizations
- Iterate until QoR targets met
Dependencies
- Vitis HLS CLI awareness
- C/C++ language expertise
- FPGA resource understanding
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/hls-c-c-to-rtl-conversion-mm5t8bfo/download' --output '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md.part' && mv '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md.part' '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Dependencies
- Vitis HLS CLI awareness
- C/C++ language expertise
- FPGA resource understanding
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md' && test -s '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/hls-cpp-to-rtl' && cp -R '.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo' '.claude/skills/hls-cpp-to-rtl'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo'openskills read 'hls-c-c-to-rtl-conversion-mm5t8bfo'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/hls-c-c-to-rtl-conversion-mm5t8bfo/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.