Section-2: Simulate the AI Engine graph using the x86simulator - 2022.2 English

Vitis Tutorials: AI Engine Development

Document ID
XD100
Release Date
2022-12-01
Version
2022.2 English

After the graph has been compiled, you can simulate your design with the x86simulator command. The x86 simulator is an ideal choice for testing, debugging, and verifying this kind of behavior because of the speed of iteration and the high level of data visibility it provides the developer. The x86 simulation does not provide timing, resource, or performance information.

  1. To run simulation you can run the command:

    make sim
    

    Or

    x86simulator --pkg-dir=./Work
    

    | Flag | Description | | —- | ———– | | –pkg-dir | The Work directory. |

  2. When the simulation is completed, navigate to the x86simulator_output directory from a terminal and run: cd x86simulator_output; ls

    You should see something similar to this:

      data/  x86sim.aierun_summary  x86simulator.log
    

As you can see a variety of files, the data directory is generated here with the output file(s) you have in the graph.cpp for the PLIO objects and the x86sim.aierun_summary is generated, which contains all the information generated by x86simulator.