| 2(40%) | Design a sequential circuit having one input, X, and one output, Z. Z is to be 1 whenever the four most recent inputs are 0100, where the most recent input is the rightmost in the string. Overlapping of sequences is allowed so that the input seqence 0100100 will produce an output of 0001001. Both the inputX and tje output Z are to be asserted high. Let state A correspond to the situation where we have seen no part of the input sequence. Then let state B be the state corresponding to seeing the first 0 in the sequence. C can correspond to 01, and D to 010. |
| (1)(10%) | Construct a state table for a Mealy machine |
| (2)(10%) | Assume the assignment of the four states is made on two state variables (Y1,Y2) as follows (00)=A,(01)=B, (11)=C, and (10)=D. Form a transition table on this assignment. |
| (3)(10%) | Derive the flip-flop excitation tables from the transition table if JK flip-flop are used. |
| (4)(10%) | Derive the flip-flop input equations and the circuit output equation from the excitation tables. |