1. Vitis Linker Configuration File - 2025.1 English - XD098

Vitis Tutorials: Getting Started (XD098)

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

This tutorial uses the system.cfg to provide guidance for the linker tool on the connectivity for the compiled kernels.

If you recall the design connectivity, we need two MM2S kernels and one S2MM kernel. Using the below code, we are declaring the required three kernels and also associating a name to each kernel:

nk = mm2s:2:mm2s_1,mm2s_2
nk = s2mm:1:s2mm

As we have now declared three kernels, it is the time to define the connectivity of these PL kernels with the AI Engine kernel. Using the below code, we are providing the connectivity details to the linker. As the AXI-Stream interface is used to connect the PL kernels to the AI Engine, stream_connect is used to define the interface for the linker. The syntax is: stream_connect=kernel_name.port_name:kernel_name.port_name

stream_connect = mm2s_1.s:ai_engine_0.DataIn1
stream_connect = mm2s_2.s:ai_engine_0.DataIn2
stream_connect = ai_engine_0.DataOut1:s2mm.s