Overview - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English

ConditionalWidget conditionally instances a kernel of a defined type. In addition, ConditionalWidget will connect graph’s input and output ports to kernel’s ports. Ports must be of window type. When disabled, no kernel will be created and input wil be directly connected to output.

These are the templates to configure the ConditionalWidget graph class.

Parameters:

addWidget

conditionally add a widget kernel.

When set to 1, kernel of: class widgetClass will be created.

windowSize describes the size of the window the widgetClass is to operate on.
widgetClass defines the class to be created.
template <
    unsigned int addWidget,
    unsigned int windowSize,
    class widgetClass
    >
class ConditionalWidget