xilinx/ross-ai-assistant/hls-run-flow
Claude Code and agent skill by xilinx/ross-ai-assistant
- community
Checking that the SKILL.md file is still in the repository.
Run HLS Flow including C Simulation (csim), C Synthesis (csynth), C/RTL Co-Simulation (cosim), Implementation (impl).
Install
npx vskill@latest install xilinx/ross-ai-assistant/hls-run-flowSKILL.md
Skill: hls-run-flow
Description
This skill runs one of the four HLS flows based on the keyword provided by the user:
| User keyword | Flow triggered | |
|---|---|---|
run csim | C Simulation | |
run csynth | C Synthesis | |
run cosim | C/RTL Co-Simulation | |
run impl | Implementation |
Resolving `$CONFIG` and `$WORK_DIR` before execution:
- Locate the HLS config file (`$CONFIG`):
- If the user provides a config path explicitly, use it.
- Otherwise, search the workspace for a
.cfgfile (e.g.,hls_config.cfg) and use the first one found. $CONFIGshould be a path relative to the workspace root.
- Resolve `$WORK_DIR`:
- If the user provides
$WORK_DIRexplicitly, use it directly. - Otherwise, read the config file and extract the value of
syn.top(e.g.,syn.top=top_module_name), then use that as$WORK_DIR. - This matches the directory HLS creates for its outputs (e.g.,
top_module_name/hls/). - Do not use
.orhlsor the workspace root as$WORK_DIR.
Prerequisite checks (enforced before execution):
- Before running cosim, verify that csynth has already been executed by checking whether the csynth output directory (
$WORK_DIR/hls/syn/) exists. If it does not exist, stop and inform the user:
> "C Synthesis (csynth) must be completed before running Co-Simulation. Please run csynth first."
- Before running cosim, always perform a
cosim.argvpreflight check in$CONFIG:
- Parse
cosim.argvfrom$CONFIG. - If
cosim.argvexists and its value is non-empty, continue. - If
cosim.argvis missing or empty, try fallback fromcsim.argv. - If
csim.argvexists and its value is non-empty, write the same value tocosim.argvin$CONFIG, save the file, and continue. - If both are missing or empty, continue. (some HLS versions do not require
cosim.argvto be set, so we allow it to be empty).
- Before running impl, verify that cosim has already been executed by checking whether the cosim output directory (
$WORK_DIR/hls/sim/) exists. If it does not exist, stop and inform the user:
> "C/RTL Co-Simulation (cosim) must be completed before running Implementation. Please run cosim first."
If the user's input does not match any of the four keywords above, ask the user to clarify which flow they want to run.
Execution method selection:
- Detect whether the skill is running inside the Vitis Unified IDE by checking if the
runHlsActiveComponentByTypefunction is available in the current environment. - If inside Vitis Unified IDE (function is available): prefer calling
runHlsActiveComponentByTypedirectly. - If outside Vitis Unified IDE (e.g., plain terminal): fall back to the corresponding
bashcommand.
How to run
Run C Simulation (csim)
If inside Vitis Unified IDE (preferred): call runHlsActiveComponentByType with type "0".
If outside Vitis Unified IDE (fallback):
Run C Synthesis (csynth)
If inside Vitis Unified IDE (preferred): call runHlsActiveComponentByType with type "1".
If outside Vitis Unified IDE (fallback):
Run C/RTL Co-Simulation (cosim)
Preflight (mandatory): complete the cosim.argv preflight check in the prerequisite section before launching cosim.
If inside Vitis Unified IDE (preferred): call runHlsActiveComponentByType with type "2".
If outside Vitis Unified IDE (fallback):
Run Implementation (impl)
If inside Vitis Unified IDE (preferred): call runHlsActiveComponentByType with type "3".
If outside Vitis Unified IDE (fallback):
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/hls-run-flow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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
[](https://verified-skill.com/skills/xilinx/ross-ai-assistant/hls-run-flow)