xls icon indicating copy to clipboard operation
xls copied to clipboard

visualize scheduling result: dump to Graphviz's dot file

Open zihaoli-cn opened this issue 2 years ago • 0 comments

Add a supplementary visualizing tool. It is useful if you want to see the scheduling result on the data dependence graph.

Features:

  • show critical path explicitly
    • nodes and edges on critical path are colored in red
  • show pipeline register explicitly
    • summary of the total length
  • show nodes' name, op(operands...), type, and delay

Here is an example to visualize crc32.opt.ir.

bazel build //xls/visualization/sched_viz:sched_printer_main //xls/examples:ir_examples
bazel-bin/xls/visualization/sched_viz/sched_printer_main --clock_period_ps=8 --delay_model=unit bazel-bin/xls/examples/crc32.opt.ir > tmp.dot
dot -Tpng tmp.dot -ocrc32.png

The output will be: crc32

zihaoli-cn avatar Jul 03 '22 12:07 zihaoli-cn