SRFlipFlop
This block sets its output when the S port is high and R is low, resets its output when the R port is high and S port is low, !Q is the complement of Q. While both S and R are low, the SR Flip Flop maintains the Q and the !Q outputs in a constant state. If both S and R are high, Q and !Q are both low.
Library
Activate/FlipFlops
Description
The SR flip flop block sets its output when the S port is high and R is low, resets its output when the R port is high and S port is low, !Q is the complement of Q.
While both S and R are low, the SR Flip Flop maintains the Q and the !Q outputs in a constant state. If both S and R are high, Q and !Q are both low.
Truth table for the inputs and outputs are listed as following:
S R Q !Q
0 0 Qn-1 !Qn-1
0 1 0 1
1 0 1 0
1 1 0 0
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
init | Initial output |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
S | explicit | input | 1 | |
R | explicit | input | 2 | |
Q | explicit | output | 1 | |
!Q | explicit | output | 2 |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |