VITIS-15146: Add GMIO-to-DDR connectivity support#9640
Merged
stsoe merged 13 commits intoXilinx:masterfrom Mar 16, 2026
Merged
Conversation
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
stsoe
reviewed
Mar 3, 2026
5d38b50 to
c1d3383
Compare
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
chvamshi-xilinx
requested changes
Mar 12, 2026
Collaborator
chvamshi-xilinx
left a comment
There was a problem hiding this comment.
Idea looks good overall, but there are some minor issues with current implementation.
Please review and fix.
added 12 commits
March 16, 2026 10:43
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
…e in all xclbins Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
…connectivity Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Bikash Singha <bisingha@xcobisingha50x.amd.com>
1ae4fec to
1f04ab1
Compare
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
stsoe
approved these changes
Mar 16, 2026
Collaborator
stsoe
left a comment
There was a problem hiding this comment.
Looks good, thanks for keeping xrt::xclbin implementation code simple.
stsoe
added a commit
to stsoe/XRT
that referenced
this pull request
Mar 17, 2026
Revert Xilinx#9640 exception in kernel construction. Message blocks xclbins used by model-tests. Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
chvamshi-xilinx
pushed a commit
that referenced
this pull request
Mar 18, 2026
Revert #9640 exception in kernel construction. Message blocks xclbins used by model-tests. Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem solved by the commit
It's a new feature. Adds APIs to resolve GMIO port names to memory bank indices so host code can allocate buffers in the correct DDR banks for AIE GMIOs. So it removes the hardcoding from all the host applications.
NOTE: This pr assumes all the xclbins will have IP_LAYOUT section irrespective of the type (non-aie, overlay aie, aie only, etc.)
API signature and Usage:
auto ghdl=xrt::graph(hwctx_1,"graphName");uint32_t bank_in_id = ghdl.gmio_bank_id("logicalGMIOName");auto din_buffer = xrt::aie::bo (hwctx_1, BLOCK_SIZE_in_Bytes,xrt::bo::flags::normal, bank_in_id);Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
It's not a bug but a new feature.
How problem was solved, alternative solutions (if any) and why they were rejected
It was solved by mapping the GMIO ports to its memory banks and assigning a mem index for buffer allocation. This happens just after loading the xclbin. And host can get the assigned bank id for a particular GMIO.
Risks (if any) associated the changes in the commit
n/a
What has been tested and how, request additional testing if necessary
Tested by having multiple usecases:
Documentation impact (if any)
Yes. The new API to get the memory bank id for a respective GMIO has to be logged.