Makefile Use - 2022.2 English

Vitis Tutorials: Hardware Acceleration (XD099)

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

There is a Makefile included in the 01-rtl_kernel_workflow/reference-files folder. You can use this file to make the following targets:

   make run TARGET=<hw_emu | hw> HOST=user

The Makefile will:

  1. Build a Vivado project to package the RTL design IP, and package a user-managed kernel (.xo)

  2. Use the Vitis compiler (v++) to link the kernel to the target platform and generate the `.xlcbin’ file

  3. Compile the XRT native API host application ./src/host/user-host.cpp

  4. If necessary generate the emulation platform and setup the emulation environment

  5. Run the application and kernel

TIP: You can use the Makefile -n option to generate the command lines without running the commands: make run TARGET=hw_emu HOST=user -n