Operator Downscale

Operator Library: Signal

The operator downscales the input signal to the specified frequency, i.e. only every Nth pulse will be forwarded to the output. Parameter Downscale specifies the downscale factor. Parameter SelectedPulse defines which pulse of a downscale sequence is used and forwarded to the output. Parameter value changes are applied only when the operator starts a new sequence. In the following waveform, the operator behavior is visualized.

The operator can be reseted using input link Reset. While the reset input is high, no pulses are processed. Any processing is aborted. The operator restarts its operation when the reset input is low. The following waveform illustrates the operator's behavior.

This operator is excluded from the VisualApplets functional simulation.

I/O Properties

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

Supported Link Format

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

Parameters

MaxScaleBits
Type static parameter
Default 8
Range [1, 32]

Defines the maximum range of parameter Downscale. This parameter is enabled only if Downscale is set to dynamic.

Downscale
Type dynamic/static read/write parameter
Default 1
Range [1, 2^MaxScaleBits-1] if dynamic, [1, 2^64-1] else

The actual downscale factor is defined with using this parameter. A downscale factor of one will forward any input pulse do the output.

The value has to be >= parameter SelectedPulse.

SelectedPulse
Type dynamic/static read/write parameter
Default 1
Range [1, 2^MaxScaleBits-1] if dynamic, [1, 2^64-1] else

This parameter selects the pulse of a sequence to be forward to the output.

The value has to be <= parameter Downscale.

Examples of Use

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