Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[proposal][wip] Add event trace configuration to mlir-aie#2705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
fifield wants to merge41 commits intoXilinx:main
base:main
Choose a base branch
Loading
fromfifield:events_proposal
Draft
Changes from1 commit
Commits
Show all changes
41 commits
Select commitHold shift + click to select a range
80a48e3
Add a callable library function to parse_trace.py
fifieldNov 13, 2025
733652a
Apply suggestions from code review
fifieldNov 13, 2025
edee5a6
Generate trace_events package with CMake instead of checking into git
fifieldNov 10, 2025
7a7e694
Apply suggestions from code review
fifieldNov 11, 2025
a1cb4cf
Make duplicate event number detection fail the build (#2697)
CopilotNov 11, 2025
e1bfbde
Generate and include tablegen event enums in AIE dialect
fifieldNov 14, 2025
543bedb
Commit 1: Add TableGen definitions for trace operations
fifieldNov 8, 2025
c5e52d5
Commit 2: Add verification tests for trace operations
fifieldNov 8, 2025
7034d74
Commit 3: Implement standalone JSON register database loader
fifieldNov 8, 2025
6c506c6
Commit 4: Implement AIETraceToConfigPass
fifieldNov 8, 2025
c7c734c
Commit 5: Implement AIEInlineTraceConfigPass
fifieldNov 8, 2025
c4c8b5e
Commit 6: Add AIEConfigToNPUPass stub implementation
fifieldNov 8, 2025
a25c6fe
Commit 7: Add end-to-end trace pipeline test
fifieldNov 8, 2025
b4f5660
Complete Pass 3 implementation with RegisterDatabase integration
fifieldNov 8, 2025
b611636
Refactor: Fix design issue with col/row preservation
fifieldNov 8, 2025
248af1c
Move trace NPU passes to AIEX dialect (fixes AIEX loading issue)
fifieldNov 8, 2025
9a4ff28
Move and update trace tests to AIEX dialect
fifieldNov 8, 2025
184c25d
Update AIEX tests to use runtime_sequence
fifieldNov 8, 2025
10449f3
checkpoint
fifieldNov 10, 2025
4a4e41f
start a test
fifieldNov 11, 2025
300908f
format
fifieldNov 11, 2025
6b591cc
checkpoint
fifieldNov 11, 2025
97007eb
updates, fixes, formatting
fifieldNov 12, 2025
caaf7f4
clang-format
fifieldNov 12, 2025
b58edf2
remove aie-config-to-npu placeholder
fifieldNov 12, 2025
6556d01
fixes for core mem events
fifieldNov 12, 2025
1635816
fix test location
fifieldNov 12, 2025
aa79764
Add stream switch port event monitoring to AIE trace infrastructure
fifieldNov 13, 2025
41ba2c7
update example to use aie.trace.port
fifieldNov 13, 2025
bb18de2
Replace BoolAttr with DMAChannelDir for trace port direction
fifieldNov 13, 2025
ebfab0d
Add test.py for trace example
fifieldNov 13, 2025
6095f3a
implement trace and combo event op tablegen
fifieldNov 14, 2025
7907894
Update lower pass for combo and edge events
fifieldNov 14, 2025
01c9a32
Update dialect to use generated enums for events
fifieldNov 15, 2025
a2433db
fix aie1 suffix
fifieldNov 15, 2025
e6a6457
checkpoint
fifieldNov 15, 2025
2532c8a
fixes, format, refactor, cleanup
fifieldNov 15, 2025
2e0fc12
checkpoint
fifieldNov 15, 2025
ef6c53e
wip
fifieldNov 16, 2025
cc56b4d
cleanup, fixes, refactor
fifieldNov 17, 2025
fc99d49
implement AIETargetModel getStreamSwitchPortIndex
fifieldNov 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Commit 6: Add AIEConfigToNPUPass stub implementation
- Implemented AIEConfigToNPU.cpp with prototype stub- Pass collects inlined trace.reg operations- Placeholder for full implementation that would:  - Load RegisterDatabase  - Resolve register names to offsets  - Encode bitfield values  - Merge writes to same register  - Generate aiex.npu.write32 operations- Compiles successfully
  • Loading branch information
@fifield
fifield committedNov 14, 2025
commitc4c8b5efe5fe0f59907b33a7c0929c38ecd9b768
36 changes: 34 additions & 2 deletionslib/Dialect/AIE/Transforms/AIEConfigToNPU.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -22,8 +22,40 @@ using namespace xilinx::AIE;

struct AIEConfigToNPUPass : AIEConfigToNPUBase<AIEConfigToNPUPass> {
void runOnOperation() override {
// Stub implementation for now
// Will be implemented in next commit
DeviceOp device = getOperation();
OpBuilder builder(device);

// For prototype: simplified implementation
// We'll generate placeholder npu.write32 operations
// A full implementation would:
// 1. Load RegisterDatabase
// 2. Resolve register names to offsets
// 3. Merge bitfields for same register
// 4. Calculate absolute addresses

// For now, just emit a comment that this pass ran
// The actual implementation will be added when we integrate
// with a real runtime sequence and AIEX dialect

// Collect all trace.reg operations at device level
SmallVector<TraceRegOp> regOps;
device.walk([&](TraceRegOp regOp) {
// Only process reg ops that are direct children of device
// (i.e., inlined ones, not ones still in trace.config)
if (isa<DeviceOp>(regOp->getParentOp())) {
regOps.push_back(regOp);
}
});

// For prototype: just verify we can iterate them
// Full implementation would generate aiex.npu.write32 here
(void)regOps; // Suppress unused variable warning

// Placeholder: In full implementation, this would:
// 1. Look up register offset from database
// 2. Encode field value
// 3. Merge with other writes to same register
// 4. Generate aiex.npu.write32
}
};

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp