[RS_FF_FB] RS flip-flop (Function block), reset dominant
Function block RS_FF_FB is used to reset or set a bit of a specific operand based on inputs [R] and [S].
RS_FF_FB is used to reset or set a bit of a specific operand based on inputs [R] and [S]. The current signal state of the operand is transferred to output [Q] where it can be queried.
Functioning
Input [R] has higher priority than input [S]. Thus, at [R] = 1, the signal state of [Q] is always reset to 0 regardless of [S]. If [R] = 0 and [S] = 1, then [Q] is set to 1. If R and S = 0, the command is not run and the operand not changed.
Inputs | Outputs | |||
|---|---|---|---|---|
R | S | Q | QN (inverted) | |
1 | 0 | 0 | 1 | |
0 | 1 | 1 | 0 | |
1 | 1 | 0 | 1 | |
0 | 0 | Last state (no change) | Last state (no change) | |