GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 11(b)

Minimized J-K excitation for a state bit

Digital Logic · Flip-Flops, Registers & Sequential Circuits · Full GATE CSE 2001 paper

GATE 2001, Q11(b) Descriptive
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 11(b), GATE 2001: Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.

Task: Give minimized sum-of-products expressions for the J and K inputs of one state flip-flop.
Question 11(b), GATE 2001: Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.

Task: Give minimized sum-of-products expressions for the J and K inputs of one state flip-flop.
Tap to enlarge
Shared context

Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.

Answer & solution

Answer: For mode flip-flop: J_M=P¬x, K_M=Px. Optionally J_P=Mx+¬M¬x and K_P=1. (no official key was published)

1. Use the four-state transition table from part (a), encoding copy states A,B with M=0 and complement states C,D with M=1. P=1 denotes B or D, where a triggering first bit is pending.

2. A J-K flip-flop obeys Q⁺=J¬Q+¬KQ. To change 0→1 requires J=1 (K don’t-care); 0→0 requires J=0; 1→0 requires K=1 (J don’t-care); and 1→1 requires K=0.

3. When M=0, the mode changes to 1 only in B (P=1) on x=0. Therefore J_M=P¬x. For M=1, J_M is irrelevant and these excitation don’t-cares allow the M literal to be omitted.

4. When M=1, the mode changes to 0 only in D (P=1) on x=1. Therefore K_M=Px, likewise independent of M after using its don’t-cares. Each is a single two-literal product and is already minimized SOP.

5. For a complete implementation, P=0 changes to 1 precisely when x=M (A on 0 or C on 1), giving J_P=Mx+¬M¬x. From either P=1 state the next P is always 0, so K_P=1. Reset both bits to 0 and use y=x XOR M.

Original paper, page 8