xilinx/ross-ai-assistant/hls-line-buffer
Claude Code and agent skill by xilinx/ross-ai-assistant
- community
Checking that the SKILL.md file is still in the repository.
Fill the HLS line-buffer and window-buffer gap for stencil kernels, including TOTAL_ITER drain and verification. Use when generated buffer code misses the drain or the check.
Install
npx vskill@latest install xilinx/ross-ai-assistant/hls-line-bufferSKILL.md
HLS Line Buffer
The LLM can generate a line buffer and window buffer structure on its own. This guide fills the gap on what it consistently gets wrong.
Before generating code, understand the flow below, then produce code that matches it.
Constants (derive before writing code):
KRAD = KSIZE / 2— kernel radius (e.g. KSIZE=15 -> KRAD=7)NLB = KSIZE - 1— number of line buffer rowsWARMUP = KRAD * COLS + KRAD— iterations before first valid output pixelTOTAL_ITER = ROWS * COLS + WARMUP— total loop iterations
1 — Run for TOTAL_ITER, not ROWS x COLS
After the last image pixel, the line buffer still holds KRAD rows of real data that have never been centered in the window. Without extra iterations those rows are never output.
Fix: run the compute loop for TOTAL_ITER iterations. Read the actual pixel from the stream when n < ROWS * COLS, otherwise use zero — all in one loop:
The zeros flush the last rows through so every pixel gets centered and output. Use one loop — not two separate loops (two loops add an FSM transition and cost ~16 cycles).
2 — Verify the LLM applied step 1 correctly
Check these before running csim/cosim:
TOTAL_ITER = ROWS * COLS + WARMUP— not justROWS * COLSWARMUP = KRAD * COLS + KRAD— uses the same COLS as col_ptr wrapping (if col_ptr wraps at COLS_POW2, WARMUP must also use COLS_POW2)- Zero tail is inline in the loop (
n < num_pixelsternary), not a second loop - Output is gated on
n >= WARMUP— no output written during warmup
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-line-buffer/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-line-buffer)