Skip to content

Routing visualization with Graphviz #2936

Draft
yenjames wants to merge 1 commit intomainfrom
router-visualizer-dot
Draft

Routing visualization with Graphviz #2936
yenjames wants to merge 1 commit intomainfrom
router-visualizer-dot

Conversation

@yenjames
Copy link
Collaborator

@yenjames yenjames commented Mar 6, 2026

Summary

This PR implements a more detailed AIE routing visualization with switchbox channels and port usage, drawn using DOT format.

Example with lowered vector_reduce_max

output

TODOs:

  • Add detailed test.
  • Register pass into aiecc pipeline.
  • visualization improvements.

…g and tile components.

- Uses standard GraphViz dot format.
- Grid layout and tile components placed in AIEVisualShared.h/.cpp for future placement visualization.
- Features visualization for shared memory, circuit-switch, and packet-switch connections.
- Dot file can be viewed using vscode extension or online dot viewer.
Comment on lines +107 to +108
output << "_symbol " << bufName << " " << "0x"
<< llvm::utohexstr(offset + bufferBaseAddr) << " " << numBytes << '\n';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
output << "_symbol " << bufName << " " << "0x"
<< llvm::utohexstr(offset + bufferBaseAddr) << " " << numBytes << '\n';
output << "_symbol " << bufName << " "
<< "0x" << llvm::utohexstr(offset + bufferBaseAddr) << " " << numBytes
<< '\n';

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Coverage Report

Created: 2026-03-06 21:39

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
Totals- - - -
Generated by llvm-cov -- llvm version 18.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant