Buffer / Window Interface - Buffer / Window Interface - 2026.2 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-11-11
Version
2026.2 English
void multiply_by_2(adf::input_buffer<int,  adf::extents<8>>& i1,
                   adf::output_buffer<int, adf::extents<8>>& o1)
{
    int32 *pi1 = i1.data();
    int32 *po1 = o1.data();
    for (unsigned ind = 0; ind < 8; ++ind) {
        *po1++ = 2 * (*pi1++);
    }
}

Graph connection:

adf::connect net0 (In1, kernel.in[0]);      // window connection (inferred)
adf::connect net1 (kernel.out[0], Out1);