BIT103 ยท 2081 ยท 5 marks
Realize JK flip-flop from RS flip-flop.
Realize JK flip-flop from RS flip-flop. [5]
Quick answer
The key difference is that JK = 11 toggles the output, whereas SR = 11 is forbidden.
Realizing JK Flip-Flop from RS Flip-Flop
Review of Both Flip-Flops
RS Flip-Flop Truth Table
| S | R | Q(next) | Remarks |
|---|---|---|---|
| 0 | 0 | Q | No change |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | X | Forbidden |
JK Flip-Flop Truth Table
| J | K | Q(next) | Remarks |
|---|---|---|---|
| 0 | 0 | Q | No change |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Q' | Toggle |
Derivation
We need to find expressions for S and R in terms of J, K, and the current state Q.
Mapping Table
Compare each input combination and find required S, R inputs:
| J | K | Q | Q(next) | S | R |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | X |
| 0 | 0 | 1 | 1 | X | 0 |
| 0 | 1 | 0 | 0 | 0 | X |
| 0 | 1 | 1 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 1 | X | 0 |
| 1 | 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 |
S and R values are derived from the RS flip-flop excitation table (what S, R must be to achieve the required Q(next) from current Q).
K-Map Simplification for S
Variables: J, K, Q
| JK \ Q | 0 | 1 |
|---|---|---|
| 00 | 0 | X |
| 01 | 0 | 0 |
| 11 | 1 | 0 |
| 10 | 1 | X |
Grouping 1s and X (don't cares):
$$\boxed{S = J \cdot Q'}$$
K-Map Simplification for R
Variables: J, K, Q
| JK \ Q | 0 | 1 |
|---|---|---|
| 00 | X | 0 |
| 01 | X | 1 |
| 11 | 0 | 1 |
| 10 | 0 | 0 |
Grouping 1s and X (don't cares):
$$\boxed{R = K \cdot Q}$$
Final Result
The conversion equations are:
$$S = J \cdot Q' \qquad R = K \cdot Q$$
Logic Circuit Diagram
+-------+
J ------| |
| AND |----> S ----+
Q' -----| | | Q
+-------+ | +--------+
+-->| |---> Q
+-------+ | | RS F/F |
K ------| | +-->| |---> Q'
| AND |----> R ----+ +--------+
Q -----| | |
+-------+ |
^ |
| |
+----------- Q ---------+
The current output Q is fed back: Q' feeds the S-gate and Q feeds the R-gate, eliminating the forbidden state and enabling toggle operation.
Summary
| Condition | S = JQ' | R = KQ | RS Behavior |
|---|---|---|---|
| J=0, K=0 | 0 | 0 | No change |
| J=0, K=1 | 0 | Q | Reset when Q=1 |
| J=1, K=0 | Q' | 0 | Set when Q=0 |
| J=1, K=1 | Q' | Q | Either Set or Reset (never both 1 simultaneously), achieving toggle |
This ensures SR = 11 never occurs, successfully realizing a JK flip-flop from an RS flip-flop.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.