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

Vitis Tutorials: Vitis Platform Creation (XD101)

Document ID
XD101
Release Date
2023-12-26
Version
2023.2 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) {