Operator COUNTER

Operator Library: Prototype

[Warning] Warning

Disclaimer: This module is part of the prototype library. It is absolutely preliminary and subject to extensive changes, even removal. Therefore, this module must not be used for productive designs. It is included for testing purposes only.

See the following code to understand how the operator works:

if (Clr == 1) {
				  O = 0;
				} else if (Add == 1) {
				  O += I;
				}
				return O;			 
		

I/O Properties

Property Value
Operator Type O
Input Links I1, data input
Add, conditon for the addition
Clr, conditon to clear
Output Link O, data output

Supported Link Format

Link Parameter Input Link I1 Input Link Add Input Link Clr Output Link O
Bit Width [1, 64] 1 1 [1, 64]
Arithmetic {unsigned, signed} as I as I as I
Parallelism any as I as I as I
Kernel Columns any 1 1 any
Kernel Rows any 1 1 any
Img Protocol VALT_IMAGE2D as I as I as I
Color Format any VAF_GRAY VAF_GRAY VAF_GRAY
Color Flavor any FL_NONE FL_NONE FL_NONE
Max. Img Width any any any any
Max. Img Height any any any any

Parameters

ClearEol
Type static/dynamic write parameter
Default 0, dynamic
Range [0, 1]

This parameter an additional condition for clearing (setting to zero) the counter. If this parameter is 1, the counter is cleared at each end of line.

ClearEof
Type static/dynamic write parameter
Default 0, dynamic
Range [0, 1]

This parameter an additional condition for clearing (setting to zero) the counter. If this parameter is 1, the counter is cleared at each end of frame.