In the installation package for this tutorial series, you will find a design_source
directory. This directory contains all of the source files necessary to build and run the examples (with the exception of the build tools such as the Vitis, Xilinx Runtime (XRT), and the target development platform, which you must install yourself).
Under the design_source directory, there are two primary directories: hw_src
and sw_src
. As the names imply, these contain the hardware and software source files for our application. The hardware sources synthesize to algorithms that run on the FPGA through the Vitis V++ compiler, and the software sources are compiled using standard GCC to run on the host processor.
We are focusing on software more than hardware in this tutorial, so we have split the source files for easy organization. In a real project any directory structures, etc., are arbitrary; you can follow the best practices of your team or organization.
Because some of the examples rely on external libraries, we are using the CMake build system for the software examples as it simplifies environment configuration. But on the hardware side, we are using standard make. This is so you can easily see the command line arguments passed to V++.