Xilinx / mlir-air

MIT License
74 stars 26 forks source link

trace generation #592

Closed Yu-Zhewen closed 3 months ago

Yu-Zhewen commented 3 months ago

Generate trace for all cores and memtiles using the new trace-offset and trace-size options, synchronized through event broadcast.

Yu-Zhewen commented 3 months ago

@erwei-xilinx Hi, I think this PR is ready for review and please let me know if the example is also working on your side. Thanks!

erwei-xilinx commented 3 months ago

Thanks for working on this, @Yu-Zhewen! I can indeed successfully generate trace file with the updated xrt/01_air_to_npu test. I wonder if this test can act as a working-out-of-the-box reference design for air-generated tracing, by setting the default trace size in aie.py and run.lit to be 32768 instead of 0? Otherwise, if the user follow the doc and change aie.py but not the runtime command, they would get segfault.

Also, could you maybe add some instructions on which parse.py to use to generate trace file for visualization?