Exercises
Exercises
Q1/ A logic circuit, with one input X and one output Z, is designed such that its output Z
becomes 1 when the input sequence at X has odd number of 1’s. Otherwise its output Z=0.
Draw the state diagram and state table of the circuit.
Logic
0001011 X Circuit Z 1111001
Q2/ Design using T-type flip-flops a logic circuit that its output Z becomes 1 when either
[0110] or [0111] sequence is detected on its input X.
Logic
00010110000111 X Circuit Z 00000001000001
Q3/ Design, using D-type flip-flops, a logic circuit that its output Z becomes 1 when [00011]
sequence is detected on its input X.
Logic
00000110000110 X Circuit Z 00000010000010
Q4/ Draw the state diagram and the state table of the circuit shown below. The ROM content
is shown in the table below also.
Serial in
Clear
Q6/ Draw the state diagram and the state table of the circuit shown below
X D Q D Q Z
F.F F.F
CLK
Q7/ Draw the state diagram and state table of 3-bit serial magnitude comparator. The outputs
of circuit are (A>B, A<B, A=B) valid every three clock cycles and for one clock period only.
A A>B
Comparator A<B
B A=B
CLK
Q8/ Draw the state diagram and state table of a circuit that serially check non BCD code.
The output of circuit is (Z=1 code is non BCD) valid every four clock cycles and for one
clock period only.
Sensors 1 Object
C Switch
0 line failure 1.5 $/hour 0
1 line working D
1.9 $/hour 1
S1 S2 S3
Logic circuit
Q10/ A sequential circuit has four flip-flops A,B,C, D and an input x. it is described by the
following state equations:
A(t+1)=(CD’+C’D)x+(CD+C’D)x’
B(t+1)=A
C(t+1)=B
D(t+1)=C
a) Obtain the sequence of states when x=1, starting from state ABCD=0001.
b) Obtain the sequence of states when x=0, starting from state ABCD=0000.
Q11/ Design the sequential circuit described by the following state equations. Use JK flip-
flops.
A(t+1)=xAB+yA’C+xy
B(t+1)=xAC+y’BC’
C(t+1)=x’B+yAB’
Q12/ A sequential circuit has two flip-flops (A and B), two inputs (x and y), and an output
(z). The flip-flop input functions and the circuit output function are as follows:
JA=xB+y’B’ KA=xy’B’ JB=xA’ KB=xy’+A z=xyA+x’y’B
Obtain the logic diagram, state table, and state equations.