Operator LimitSignalWidth

Operator Library: Signal

The operator limits the pulse width of the input signal. To set the maximum width use parameter MaxWidth. The pulse width is the time, the pulse is 1 (HIGH). The following waveform shows the behavior of the operator. The first pulse if limited by the operator to four clock cycles defined by parameter MaxWidth. The second pulse is shorter than MaxWidth and therefore, no limitation is required. Parameter changes are applied to the next pulse and will not change the limitation of a currently processed pulse.

The pulse width is measured in Ticks. Tick is an input link. For every 1 (HIGH) at the Tick input the operator counts the width. This behavior is shown in the next figure. In most applications, the Tick input is not required. Tie it to Vcc in these cases.

An additional Reset input enables the reset of the operator. Any current pulse processing is aborted.

This operator is excluded from the VisualApplets functional simulation.

I/O Properties

Property Value
Operator Type O
Input Links I, signal input
Tick, signal input
Reset, signal input
Output Link O, signal output

Supported Link Format

Link Parameter Input Link I Input Link Tick Input Link Reset Output Link O
Bit Width 1 1 1 as I
Arithmetic unsigned unsigned unsigned as I
Parallelism 1 1 1 as I
Kernel Columns 1 1 1 as I
Kernel Rows 1 1 1 as I
Img Protocol VALT_SIGNAL VALT_SIGNAL VALT_SIGNAL as I
Color Format VAF_GRAY VAF_GRAY VAF_GRAY as I
Color Flavor FL_NONE FL_NONE FL_NONE as I
Max. Img Width any any any as I
Max. Img Height any any any as I

Parameters

MaxWidthBits
Type static parameter
Default 16
Range [1, 64]

The maximum possible value of MaxWidth is defined using this parameter. This parameter is enabled only if MaxWidth is set to dynamic.

MaxWidth
Type static/dynamic read/write parameter
Default 32768
Range [0,2^MaxWidthBits-1] if dynamic, [0, 2^64-1] if static

Defines the maximum signal width.

Examples of Use

The use of operator LimitSignalWidth is shown in the following examples: