Polybench® Reference
Results in 1.0 (Pseudo-True) continuously, if the S input is Pseudo-True for at least one sample period, or results in 0.0 (Pseudo-False) continuously, if the R input is Pseudo-True for at least one sample period.

Flip-Flop (set/reset)


This operator functions as a set-reset flip-flop, using signal values of 0 (pseudo-false) or 1 (pseudo-true). If the Set input is 1 or greater than 1 for at least one sample period, the output becomes 1. If the Reset input becomes 1 or greater than 1 for at least one sample period, the output becomes 0.

Operator ports

Input S: Floating point values

Input R: Floating point values

Output FlipFlop: Floating point values


Find more information about changing properties here: link

type: Word or phrase
The name of the object in the project. This name must not contain '.' or '$' characters.

Every object has the Caption property. This property is very important, because it is the name by which Polybench recognizes this object.
It is allowed to give multiple objects the same name, as long as the objects are of the same type. In that case, a reference to this caption includes all the objects with the same caption.
In Polybench, every object can be addressed by an Address specifier, which starts with the dollar sign, for example: $My Page.My Object. 'My Page' would be the Caption of a page, and 'My Object' the Caption of an object on that page.

type: See description
Optional documentation of this object.

It is good practice to write in short notes why you have used this object, and why its properties are set the way they are set. If this object is an operator, the Documentation text is displayed below the operator symbol.


Pseudo-boolen signal values are values that are defined to be boolean False if they are 0, and boolean True if they are greater than or equal to 1. If boolean values are defined this way, a logical AND operation equals multiplication, and a logical OR operation equals addition. The set-reset flip-flop can be used to convert a short pseudo-boolean True value in a continuous pseudo-boolean True or False signal.

This operator expects both inputs to have an equal number of channels, or one input to have one channel. The output has the highest number of channels of both input channels.

If one input has one channel, the flip-flop is set or reset for all output channels at once. If both inputs have an equal channel count, the operation is carried out for every corresponding channel separately.

The first, or S input has priority above the second input. Output channel naming and numbering are copied from the S input. Therefore a feedback loop should be connected to the second (or R) input, in order to get consistent functionality.

Read more about pseudo-boolean states (pseudo-true and pseudo-false) here: link.