How to implement sliding window with persistent line buffers using input_buffer in AI Engine?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c
- Domain
- embedded-iot
Research direction
The issue does not name a repository file or test. Start by locating the AI Engine stencil examples and documentation for input_buffer and plio, then verify how buffer contents are replaced across iterations. Done means identifying and documenting a supported way to retain prior rows while loading only the next row, or clearly establishing the limitation.
Written by the indexing model from the issue text.
Description
Hello,
I’m working on a stencil-based AI Engine kernel where I want to implement a sliding window using local memory. My goal is to reuse previously loaded rows and update only one row per iteration. Here's the scenario:
Suppose I have 5 rows of data:
ROW 1
ROW 2
ROW 3
ROW 4
ROW 5
In the first iteration, I load ROW 1, ROW 2, ROW 3 into local memory (e.g., using input_buffer).
In the next iteration, I want to load only ROW 4, discard ROW 1, and align memory to now contain ROW 2, ROW 3, ROW 4.
The same logic continues: shift, reuse, update only the latest row.
However, when I use a plio with input_buffer, it seems the entire buffer gets overwritten with new data in each iteration.
This prevents me from preserving previous rows in local memory across iterations.
- Dominant language
- C
- Stars
- 1.6k
- Forks
- 627
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Xilinx/Vitis-Tutorials
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Xilinx/Vitis-Tutorials#513 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Xilinx/Vitis-Tutorials#512 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Xilinx/Vitis-Tutorials#509 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Xilinx/Vitis-Tutorials#508 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Xilinx/Vitis-Tutorials#506 ·
All issues in Xilinx/Vitis-Tutorials
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·