Operator RsFlipFlop

The operator implements a set-reset flip-flop. If a one (HIGH) is at input link Set, the operator sets the output value to HIGH and keeps the value until a zero (LOW) is present at input link Reset. When Reset is set to HIGH, the output value on output link O is set to LOW. Parameter Priority is used to define if Set or Reset is the master. The value defined with parameter Init is output at startup. See the following truth table and waveform for explanation.

Set Reset O
0 0 O(t-1)
0 1 0
1 0 1
1 1 1 (Priority = Set)

This operator is excluded from the VisualApplets functional simulation.

I/O Properties

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

Supported Link Format

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

Parameters

Priority
Type static parameter
Default RESET
Range {RESET, SET}

This parameter specifies behavior of the operator for the case when both Set and Reset are set to HIGH simultaneously. RESET: the value on the link O will be set to LOW. SET: the value on the output link O will be set to HIGH.

Init
Type static parameter
Default 0
Range [0, 1]

This parameter specifies the start up value.

Examples of Use

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