Steps to run the Hardware Emulation - 2025.1 English - XD098

Vitis Tutorials: Getting Started (XD098)

Document ID
XD098
Release Date
2025-06-17
Version
2025.1 English

In previous chapters, we used the Vitis Linker and Packager to generate the “emulation” directory conntaining the launch_hw_emu.sh script and necessary files to run the Hardware Emulation. In this chapter, we will use these files to launch the Hardware Emulation and verify the results:

  • Launch the Hardware Emulation using launch_hw_emu.sh script

cd /<path_to_tutorial>/Getting_Started/Vitis/vitis_dir/pack_out_dir
./launch_hw_emu.sh -g

-g options helps to launch the XSIM in GUI mode.

The above command should result in some prints in the terminal and to invoke the XSIM GUI. Once the simulate starts, please navigate to Vivado Tcl console and run the simulation.

run all
  • Run host.exe.

Once the Linux boot is complete, use the below commands to run the host.exe and a.xclbin versal-rootfs-common-20242:/mnt#

sudo su
cd /run/media/mmcblk0p1
./host.exe a.xclbin
  • Check the results

OUTPUT[0]=30
OUTPUT[1]=70
OUTPUT[2]=110
OUTPUT[3]=150
TEST PASSED

Next Chapter: Running the design on Hardware


Copyright © 2020–2025 Advanced Micro Devices, Inc.

Terms and Conditions