Directory Structure

The directory structure generated by the command-line flow, and the IDE flow, has been organized to allow you to easily find and access files. By navigating the various compile, link, logs, and reports directories, you can easily find generated files. Similarly, each kernel will also have a directory structure created.

Output Directories from the v++ Command

When using v++ on the command line, by default it creates a directory structure during compile and link. The .xo and .xclbin are always generated in the working directory. All the intermediate files are created under the _x directory (default name of the temp_dir).

The following example shows the generated directory structure for two v++ compile runs (k1 and k2) and one v++ link (design.xclbin). The k1.xo, k2.xo and design.xclbin files are located in the working directory. The _x directory contains the associated k1 and k2 kernel compile sub-directories. The link, logs, and reports directories contain the respective information on the builds.

Figure 1: Command Line Directory Structure


You can optionally change the directory structure using the following v++ options:

--log_dir <dir_name>
-–report_dir <dir_name>
-–temp_dir <dir_name>

See Vitis Compiler Command for additional details.

Output Directories from the Vitis IDE

The default directory structure of the output files from the Vitis IDE flow, though similar, is not identical to that created by the command-line flow. The following example shows the directory structure automatically generated by the Vitis IDE for two kernels, k1 and k2, compiled and linked by the v++ command. The k1.xo, k2.xo, and design.xclbin files are located in the working directory. The _x directory contains the associated k1 and k2 kernel compile sub-directories. Again, the link, logs, and reports directories contain the respective information on the builds.

Figure 2: GUI Directory Structure


The Vitis IDE manages the creation of the directory structure using the following v++ command options, which can be specified through the GUI:

–-temp_dir
–-report_dir
–-log_dir

Refer to Using the Vitis IDE for more information.