Now that you have imported the kernels, you need to tell the Vitis linker how to connect everything together.
In the simple_application_system_hw_link.prj page, enable Export hardware (XSA).
Now you need to tell the Vitis compiler about the connectivity of the system. This step is done using a configuration file. Create a
connectivity.cfgfile with a text editor and add the following lines.
[connectivity] stream_connect=mm2s_1.s:ai_engine_0.mygraph_in stream_connect=ai_engine_0.mygraph_out:s2mm_1.s
Note that as per the Vitis Unified Software Platform Documentation: Application Acceleration Development (UG1393), the naming convention for the compute units (or kernel instances) are
<kernel>_#, where # indicates the CU instance. Thus the CU names built corresponding to the kernels
s2mm in your project are respectively
stream_connect option is defined as
For example, to connect the AXI4-Stream interface of the
mm2s_1 (compute unit name) called
s (kernel interface name) to the
mygraph_in (interface name) input of the graph in the
ai_engine_0 (compute unit name) IP you need the following option:
Right-click the simple_application_system_hw_link and click import sources. Select the
connectivity.cfgfile created and add it to the simple_application_system_hw_link folder.
In the simple_application_system_hw_link.prj page, right-click the binary container and click Edit v++ options.
Add the following option in the V++ command line options section to link your configuration file: