Expand the
PeakDetect
AI Engine domain project, right-click thesrc
directory, and choose Import Source.Browse to the
cmd_src/aie/
directory, and tick the/aie
on left side, that enablesgraph.h
,graph.cpp
files along with the kernel sources inkernels/
directory.Click Finish, and observe the sources added to the
PeakDetect
AI Engine domain project.Now add the input stimulus. Right-click the
data/
directory -> Import sources -> browse tocmd_src/data
directory, and choose theinx.txt
file.Right-click the AI Engine domain project, and select the C++ Build settings. Navigate to the Input Spec, and add
../src/kernels
in the include paths.>
You can click No in the dialog box that opens. Double-click the PeakDetect.prj file under the AI Engine domain project, and click
Click to select Top-level File
. Expand thePeakDetect/src/
, and select thegraph.cpp
file. Click OK.
The AI Engine domain project is ready to build.
NOTE: When you change the build target from
Emulation-AIE
(default) toEmulation-SW
, make sure to repeat the step 5.