The final step is to run HW emulation using the following make
command:
make run_hw_emu
The corresponding script is as follows:
./launch_hw_emu.sh
Tip: Option
-add-env VITIS_LAUNCH_WAVEFORM_BATCH=1
can be added tolaunch_hw_emu.sh
to record the waveform of the platform into waveform file (*.wdb
).
Tip: Hitting a key accidentally will prevent the system booting automatically. If this happens, type
boot
at theVersal>
prompt to resume the system booting.
After Linux has booted, run the following commands at the Linux prompt (this is only for HW cosim):
./host.exe a.xclbin
To exit QEMU press Ctrl+A
and then press x
.
Alternatively, to run in hardware, after booting Linux, run the following commands at the Linux prompt:
mount /dev/mmcblk0p1 /mnt
cd /mnt
./host.exe a.xclbin
The host code is self-checking. It will check the output data against the golden data. If the output data matches the golden data, after the run is completed, it will print:
TEST PASSED