- Notifications
You must be signed in to change notification settings - Fork161
[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:mainChoose a base branch fromfifield:events_proposal
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
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
fifield733652a Apply suggestions from code review
fifieldedee5a6 Generate trace_events package with CMake instead of checking into git
fifield7a7e694 Apply suggestions from code review
fifielda1cb4cf Make duplicate event number detection fail the build (#2697)
Copilote1bfbde Generate and include tablegen event enums in AIE dialect
fifield543bedb Commit 1: Add TableGen definitions for trace operations
fifieldc5e52d5 Commit 2: Add verification tests for trace operations
fifield7034d74 Commit 3: Implement standalone JSON register database loader
fifield6c506c6 Commit 4: Implement AIETraceToConfigPass
fifieldc7c734c Commit 5: Implement AIEInlineTraceConfigPass
fifieldc4c8b5e Commit 6: Add AIEConfigToNPUPass stub implementation
fifielda25c6fe Commit 7: Add end-to-end trace pipeline test
fifieldb4f5660 Complete Pass 3 implementation with RegisterDatabase integration
fifieldb611636 Refactor: Fix design issue with col/row preservation
fifield248af1c Move trace NPU passes to AIEX dialect (fixes AIEX loading issue)
fifield9a4ff28 Move and update trace tests to AIEX dialect
fifield184c25d Update AIEX tests to use runtime_sequence
fifield10449f3 checkpoint
fifield4a4e41f start a test
fifield300908f format
fifield6b591cc checkpoint
fifield97007eb updates, fixes, formatting
fifieldcaaf7f4 clang-format
fifieldb58edf2 remove aie-config-to-npu placeholder
fifield6556d01 fixes for core mem events
fifield1635816 fix test location
fifieldaa79764 Add stream switch port event monitoring to AIE trace infrastructure
fifield41ba2c7 update example to use aie.trace.port
fifieldbb18de2 Replace BoolAttr with DMAChannelDir for trace port direction
fifieldebfab0d Add test.py for trace example
fifield6095f3a implement trace and combo event op tablegen
fifield7907894 Update lower pass for combo and edge events
fifield01c9a32 Update dialect to use generated enums for events
fifielda2433db fix aie1 suffix
fifielde6a6457 checkpoint
fifield2532c8a fixes, format, refactor, cleanup
fifield2e0fc12 checkpoint
fifieldef6c53e wip
fifieldcc56b4d cleanup, fixes, refactor
fifieldfc99d49 implement AIETargetModel getStreamSwitchPortIndex
fifieldFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
implement trace and combo event op tablegen
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit6095f3aaba3121659f99fbffce588091d95e71d1
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| // RUN: aie-opt %s | FileCheck %s | ||
| aie.device(npu1_1col) { | ||
| %tile02 = aie.tile(0, 2) | ||
| // CHECK-LABEL: @test_combo_basic | ||
| aie.trace @test_combo_basic(%tile02) { | ||
| // CHECK: aie.trace.combo_event<0> <"LOCK_STALL"> AND <"DMA_S2MM_0_STALLED"> | ||
| aie.trace.combo_event<0> <"LOCK_STALL"> AND <"DMA_S2MM_0_STALLED"> | ||
| // CHECK: aie.trace.combo_event<1> <"INSTR_EVENT_0"> OR <"INSTR_VECTOR"> | ||
| aie.trace.combo_event<1> <"INSTR_EVENT_0"> OR <"INSTR_VECTOR"> | ||
| // CHECK: aie.trace.event <"COMBO_EVENT_0"> | ||
| aie.trace.event<"COMBO_EVENT_0"> | ||
| } | ||
| // CHECK-LABEL: @test_edge_basic | ||
| aie.trace @test_edge_basic(%tile02) { | ||
| // CHECK: aie.trace.edge_event<0> event = <"LOCK_STALL"> trigger = RISING | ||
| aie.trace.edge_event<0> event=<"LOCK_STALL"> trigger=RISING | ||
| // CHECK: aie.trace.edge_event<1> event = <"DMA_MM2S_0_FINISHED_BD"> trigger = BOTH | ||
| aie.trace.edge_event<1> event=<"DMA_MM2S_0_FINISHED_BD"> trigger=BOTH | ||
| // CHECK: aie.trace.event <"EDGE_DETECTION_EVENT_0"> | ||
| aie.trace.event<"EDGE_DETECTION_EVENT_0"> | ||
| } | ||
| // CHECK-LABEL: @test_hierarchical | ||
| aie.trace @test_hierarchical(%tile02) { | ||
| // CHECK: aie.trace.combo_event<0> <"LOCK_STALL"> AND <"DMA_S2MM_0_STALLED"> | ||
| aie.trace.combo_event<0> <"LOCK_STALL"> AND <"DMA_S2MM_0_STALLED"> | ||
| // CHECK: aie.trace.combo_event<1> <"INSTR_EVENT_0"> OR <"INSTR_VECTOR"> | ||
| aie.trace.combo_event<1> <"INSTR_EVENT_0"> OR <"INSTR_VECTOR"> | ||
| // CHECK: aie.trace.combo_event<2> <"COMBO_EVENT_0"> AND <"COMBO_EVENT_1"> | ||
| aie.trace.combo_event<2> <"COMBO_EVENT_0"> AND <"COMBO_EVENT_1"> | ||
| // CHECK: aie.trace.event <"COMBO_EVENT_2"> | ||
| aie.trace.event<"COMBO_EVENT_2"> | ||
| } | ||
| // CHECK-LABEL: @test_all_logic | ||
| aie.trace @test_all_logic(%tile02) { | ||
| // CHECK: aie.trace.combo_event<0> <"LOCK_STALL"> AND <"DMA_S2MM_0_STALLED"> | ||
| aie.trace.combo_event<0> <"LOCK_STALL"> AND <"DMA_S2MM_0_STALLED"> | ||
| } | ||
| // CHECK-LABEL: @test_and_not | ||
| aie.trace @test_and_not(%tile02) { | ||
| // CHECK: aie.trace.combo_event<0> <"LOCK_STALL"> AND_NOT <"DMA_S2MM_0_STALLED"> | ||
| aie.trace.combo_event<0> <"LOCK_STALL"> AND_NOT <"DMA_S2MM_0_STALLED"> | ||
| } | ||
| // CHECK-LABEL: @test_or | ||
| aie.trace @test_or(%tile02) { | ||
| // CHECK: aie.trace.combo_event<0> <"LOCK_STALL"> OR <"DMA_S2MM_0_STALLED"> | ||
| aie.trace.combo_event<0> <"LOCK_STALL"> OR <"DMA_S2MM_0_STALLED"> | ||
| } | ||
| // CHECK-LABEL: @test_or_not | ||
| aie.trace @test_or_not(%tile02) { | ||
| // CHECK: aie.trace.combo_event<0> <"LOCK_STALL"> OR_NOT <"DMA_S2MM_0_STALLED"> | ||
| aie.trace.combo_event<0> <"LOCK_STALL"> OR_NOT <"DMA_S2MM_0_STALLED"> | ||
| } | ||
| // CHECK-LABEL: @test_rising | ||
| aie.trace @test_rising(%tile02) { | ||
| // CHECK: aie.trace.edge_event<0> event = <"LOCK_STALL"> trigger = RISING | ||
| aie.trace.edge_event<0> event=<"LOCK_STALL"> trigger=RISING | ||
| } | ||
| // CHECK-LABEL: @test_falling | ||
| aie.trace @test_falling(%tile02) { | ||
| // CHECK: aie.trace.edge_event<0> event = <"LOCK_STALL"> trigger = FALLING | ||
| aie.trace.edge_event<0> event=<"LOCK_STALL"> trigger=FALLING | ||
| } | ||
| // CHECK-LABEL: @test_both | ||
| aie.trace @test_both(%tile02) { | ||
| // CHECK: aie.trace.edge_event<0> event = <"LOCK_STALL"> trigger = BOTH | ||
| aie.trace.edge_event<0> event=<"LOCK_STALL"> trigger=BOTH | ||
| } | ||
| } |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.