Connection Constructor Templates - 2022.2 English

AI Engine Kernel and Graph Programming Guide (UG1079)

Document ID
UG1079
Release Date
2022-10-19
Version
2022.2 English
template<int blocksize> connect< window<blocksize> > [name](portA, portB)

Connects two windowed buffer ports of specified block size.

template<int blocksize, int overlap>  connect< window<blocksize, overlap> > [name](portA, portB)

Connects two windowed buffer port of specified block size and overlap.

template<int blocksizeA, int blocksizeB>  connect< window<blocksizeA>, window<blocksizeB> > [name](portA, portB)

Connects two windowed buffer port of different block sizes.

template<int blocksizeA, int blocksizeB, int overlap>  connect< window<blocksizeA>, window<blocksizeB, overlap> > [name](portA, portB)

Connects two windowed buffer port of different block sizes, specifying an overlap for portB.

template<int blocksize, int overlap>  connect<stream , window<blocksize, overlap> > [name](portA, portB)

Connects a stream port to a windowed buffer port of specified block size and overlap.

template<int blocksize>  connect<stream , window<blocksize> > [name](portA, portB)

Connects a stream port to a windowed buffer port of specified block size and zero overlap.

template<int blocksize>  connect<window<blocksize>, stream> [name](portA, portB)

Connects a windowed buffer port of specified block size to a stream port.

template<> connect<stream> [name](portA, portB)

Connects between two stream ports.

template<> connect<cascade> [name](portA, portB)

Connects between two AI Engine cascade ports.

template<> connect<> [name](portA, portB)

Connects between hierarchical ports between different levels of hierarchy.

template<> connect<parameter> [name](portA, portB)

Connects a parameter port to a kernel port.

template<> connect<> [name](parameter, kernel)

Connects a LUT parameter array object to a kernel.