Fix direction string in ddr bandwidth metadata#57
Merged
jvillarre merged 2 commits intoXilinx:masterfrom Apr 30, 2026
Merged
Conversation
The metadata was incorrectly calculating channel as counterNumber % 2, which gave wrong results for peak bandwidth metrics where counters 0,1 map to channel 0 and counters 2,3 map to channel 1. Added channel field to CTCounterInfo to store the correct channel from BandwidthCounterConfig and use it directly in metadata output. Before: ctr0->ch0, ctr1->ch1, ctr2->ch0, ctr3->ch1 (wrong) After: ctr0->ch0, ctr1->ch0, ctr2->ch1, ctr3->ch1 (correct) Now each channel correctly has both running and stalled events. Made-with: Cursor
The input/output direction labels were inverted. From the AIE/application perspective: - "input" = data read FROM DDR into AIE = MM2S channels - "output" = data written TO DDR from AIE = S2MM channels Fixed getPortDirection() to return correct direction based on isMaster flag (S2MM=master=output, MM2S=slave=input). Fixed getBandwidthCounterConfigs() so that: - peak_read_bandwidth uses MM2S channels (input) - peak_write_bandwidth uses S2MM channels (output) - ddr_bandwidth has MM2S as input and S2MM as output Signed-off-by: Garima Dhaked <garima.dhaked@amd.com> Made-with: Cursor
jvillarre
approved these changes
Apr 30, 2026
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.
direction strings in metadata is wrong for read and write bandwidths.
fix is needed for peak bandwidths as well