The CASE operator multiplexes multiple input links of identical formats. The number of input links has to be selected at the instantiation of the module and determines the bit width of the input link "Switch". The value at input link Switch decides which input link is selected and forwarded to the output. When the Switch input selects a non-existent input link, the output of the operator becomes zero. The operator can be used with kernels. Each kernel component is selected independently.
|Input Links||I0, data input
I1..In-1, data input
Switch, data input
|Output Link||O, data output|
The range of the input bit width is [1, 64] for unsigned values. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63].
If image protocol VALT_SIGNAL is used, only 2 inputs can be addressed and used.
The bit width of the switch input is automatically determined from the number if input links n
The use of operator CASE is shown in the following examples:
Example - Line Shear example with linear interpolation.