Declare kernel function k1
with input stream
operates on data type int32
that is named in0
and circular 1d
output buffer
operates on data type int32
that is named out0
.
void k1(input_stream<int32> *in0, output_circular_buffer<int32, adf::extents<OUTPUT_SAMPLE_SIZE>> & out0)
{
auto out0Iter = aie::begin_circular(out0);
for (int ind = 0; ind < OUTPUT_SAMPLE_SIZE; ++ind)
{
*out0Iter++ = readincr(in0);
}
}