VCD File Generation - 2022.1 English

Versal ACAP AI Engine Programming Environment User Guide (UG1076)

Document ID
Release Date
2022.1 English

To generate a VCD file from the Vitis IDE, right-click on your AI Engine graph project from the Explorer view and select Run As > Run Configurations as described in Creating the AI Engine Graph Project and Top-Level System Project. This opens up the Run Configurations dialog box for the current project.

Figure 1. Vitis IDE to Enable VCD File Generation

Select the AI Engine Emulator option and double click to open a new configuration. Select the Generate Trace check box to enable trace capture, and select the VCD Trace button. By default, this produces a VCD dump in a file called foo.vcd in the current directory. You can rename the file if you like.

The VCD file can also be generated by invoking the AI Engine simulator with the --dump-vcd <filename> option on the command line. The VCD file is generated in the same directory as the simulation is run. Assuming that the program is compiled using the AI Engine compiler, the simulator can be invoked in a shell with the VCD option.

$ aiesimulator –-pkg-dir=./Work --dump-vcd=foo

This command produces the VCD file (foo.vcd) which is written to the current directory.