Step 2: V++ linker to integrate the partitions - 2025.1 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2025-08-25
Version
2025.1 English

V++ linker can link multiple independent compilation results together. The Makefile contains the V++ linker command:

LIBADF   = pr0_gmio/libadf.a pr1_rtp/libadf.a pr2_perf/libadf.a
...
xsa: guard-PLATFORM_REPO_PATHS ${XSA}
${XSA}: ${LIBADF} ${VPP_SPEC} ${XOS}
	${VCC} -g -l --platform ${PLATFORM} ${XOS} ${LIBADF} -t ${TARGET} ${VPP_FLAGS} -o $@

Note: Single partition flow uses multiple libadf.a for v++ -l command.

In the system configuration file system.cfg, the graph ports in the graphs are prefixed with the partition name. For example, the PLIO port Dataout0 is named as pr1_Dataout0 in the configuration file:

[connectivity]
stream_connect=ai_engine_0.pr1_Dataout0:s2mm_1.s
stream_connect=datagen.out:ai_engine_0.pr1_Datain0

Run the following command to link the design:

cd <TUTORIAL_PATH>/independent_graphs
make xsa