In this step, you will add the PL kernels, s2mm
and mm2s
.
To add the PL kernels, right-click the PeakDetect_system project, and select Add Hw kernel Project.
Name the Hw kernel project name as PeakDetect_PL, and click Finish.
Observe the PeakDetect_PL gets added to the system project.
Right-click the PeakDetect_PL -> src, and select Import sources. Browse to
cmd_src/pl_kernels/
, and select Open.Select both
mm2s.cpp
ands2mm.cpp
. Click the Finish button.Double click the PeakDetect_PL -> PeakDetect_PL.prj, and in the project settings, select the Add Hardware Function.
Choose the mm2s and s2mm functions, and click OK. Observe the hardware function gets added as follows.