Operator SignalToPeriod

Operator Library: Signal

The operators measures the the period time of the signal at the input. The period time is the time between two rising edges at the input. The result is output as a pixel value at output link O. Hence, output O is a VALT_PIXEL0D pixel data stream. The bit width of the output link can be changed and represents the maximum possible period time. If the actual period time exceeds the output value range, it will be clipped to the maximum possible value. In the following waveform, the behavior of the operator is illustrated.

The period time is measured in Ticks being high. Tick is a signal input and can be used like a prescaler. For every high value at the Tick input, the period time is measured. The following waveform shows the behavior of the Tick input to the period measurement. In most cases, the Tick input is not required. Tie it to operator VCC in this case.

By use of the additional reset input, the current measurement can be cancelled.

This operator is excluded from the VisualApplets functional simulation.

I/O Properties

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

Synchronous and Asynchronous Inputs

  • All signal inputs may be sourced by the same or different M-type operators through an arbitrary network of O-type operators. If they are sourced by the same M-type source, they will be automatically synchronized.

Supported Link Format

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

Parameters

None

Examples of Use

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