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 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.
To run simulation run the command:
make sim
Or
x86simulator --pkg-dir=./Work
| Flag | Description |
| ---- | ----------- |
| --pkg-dir | The ***Work*** directory. |
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 the following:
data/ x86sim.aierun_summary x86simulator.log
As you can see, a variety of files in the
data
directory are generated with the output file(s) you have in thegraph.cpp
for the PLIO objects and thex86sim.aierun_summary
is generated, which contains all the information generated byx86simulator
.
Vitis Analyzer
Open the generated
x86sim.aierun_summary
from thex86simulator_output
directory for Vitis Analyzer. To do this, run the command:vitis_analyzer x86simulator_output/x86sim.aierun_summary
This opens the summary view in Vitis Analyzer that displays the simulation run time and the exact command line used for simulation.
Note: As the x86 simulation runs the design at a functional level, kernels do not physically map and route on the AI engine array. Therefore, the Array view is not available in aierun
summary.