# vitis_tutorial_u50 **Repository Path**: sunhao2020/vitis_tutorial_u50 ## Basic Information - **Project Name**: vitis_tutorial_u50 - **Description**: This is a simple tutorial for accelerating applications on U50 with Vitis command line (Vitis 2022.2). - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-25 - **Last Updated**: 2024-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Overview This is a simple tutorial for accelerate application on U50 with Vitis command line. Those four parts are used to generate the accelerationapplications from source files. 1. kernel: generate the *.xclbin from source files according the target platform. 1. compile the files with `v++ -c`. Do HLS(high-level-synthesis) to generate xilinx object files(.xo). 2. link the *.xo files with `v++ -l`. 1. link the IP with Processing system to generate the RTL hardware design block. 2. run VPL(verilog to placement and routing) with platform information. Do placement and routing on U50 alveo card 3. generate the bitstream 4. package the boot information for configuring the FPGA to *.xclbin 2. host: generate the execute file *.exe. 3. emulation: generate the emulation files of the application, including hw_emu and sw_emu. 4. run_hw: copy the related files to this directory and run the host on the hw. Besides, the run_all.sh is used to generate the hardware and run on the alveo card. The run_clean_all.sh is used to clean all the compiled files and running files. ## Set the compile environment: ``` source /tools/Xilinx/Vitis/2022.2/settings64.sh source /opt/xilinx/xrt/setup.sh export PLATFORM_REPO_PATHS=/opt/xilinx/platforms/xilinx_u50_gen3x16_xdma_5_202210_1/ export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu ``` ## Steps running on the alveo card 1. run `./run_all.sh` 2. cd the run_hw directory 5. run `./host.exe` to run the accelerator on the alveo card