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
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 |