3. Add more ports to the kernel functions - 2024.1 English

Vitis Tutorials: Vitis Platform Creation (XD101)

Document ID
XD101
Release Date
2024-06-19
Version
2024.1 English

Modify the kernel function to include more ports for interacting with the IP inside platform.

OLD

extern "C" {
/*
    Vector Addition Kernel
    ...
extern "C" {
void krnl_vadd(uint32_t* in1, uint32_t* in2, uint32_t* out, int size) {

NEW

extern "C" {
/*
    Vector Addition Kernel
    ...
void krnl_vadd(uint32_t* in1, uint32_t* in2, uint32_t* out, int size, int *wave_out, hls::stream<pkt> &dds_in) {