GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 19

NAND controller transition table

Digital Logic · Finite-State Machine Design · Full GATE CSE 1993 paper

GATE 1993, Q19 5 marks · Descriptive
Report issue

Finite-State Machine Design

Question 19, GATE 1993: Two common-clock D flip-flops hold A,B. The two NAND inputs to the final NAND for D_A are NAND(¬A,B), NAND(¬A,¬P); those for D_B are NAND(P,¬B), NAND(¬P,A). Derive the state transition table.
Tap to enlarge
Answer & solution

Answer: AB,P → A⁺B⁺: 00,0→10; 00,1→01; 01,0→10; 01,1→10; 10,0→01; 10,1→01; 11,0→01; 11,1→00. (no official key was published)

Read the feedback labels and output inversion bubbles before simplifying: the upper two first-stage gates share ¬A, and the bottom gate uses A and ¬P. A NAND of two NAND outputs implements an OR of their underlying products. Therefore D_A=¬A·B+¬A·¬P=¬A(B+¬P), and D_B=P·¬B+¬P·A. On a clock edge the new states are these D values evaluated from the old A,B and sampled P, not from a newly updated flip-flop.

For P=0 the equations become A⁺=¬A and B⁺=A, so old states with A=0 go to 10 and those with A=1 go to 01. For P=1 they become A⁺=¬A·B and B⁺=¬B. Evaluating 00,01,10,11 gives 01,10,01,00 respectively.

Complete table (old AB: next for P=0 / next for P=1):
00: 10 / 01
01: 10 / 10
10: 01 / 01
11: 01 / 00.
This table includes all eight state/input combinations. Crossing wires without junction dots are not additional connections. Both source diagrams agree on the labelled feedback paths.

Original paper, page 12