EENG211-INFE211 Final-Solutions
EENG211-INFE211 Final-Solutions
EENG211-INFE211 Final-Solutions
Spring 2008-09
Instructor:
M. K. Uyguroğlu
Final EXAMINATION
Number of Problems: 5
Good Luck
STUDENT’S
NUMBER
NAME SOLUTIONS
SURNAME
GROUP NO
Problem Points
1 20
2 20
3 20
4 20
5 25
TOTAL 105
EENG211/INFE211 Digital Logic Design I - Final Examination
53 2 1
26 2 0
13 2 1
6 2 0
3 2 1
1 2 1
0
5310 = (00110101)2
-5310 = (11001011)2
01 1 1 1 1
11 1 1 1 1
10
(d) Simplify the Boolean function represented in the following K-map: [2.5 points]
CD
AB 00 01 11 10
00
01 1
11 1 1 1
10 1 1
F(A,B,C,D)=AC’+ABD’+BC’D’
(e) Select the equivalent expression/s for the following logic gate structure: [5 points]
F=xy’+yz+xz
yz
x
00 01 11 10
(a) F = x+yz 0 1
(b) F = xy’+yz
(c) F = xy’z + xy’z’ + xyz + x’yz 1 1 1 1
(d) All of the above
(e) both (b) and (c)
Inputs Output
a b C f
0 0 0 1
0 0 1 0
0 1 0 Don’t care
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 Don’t care
1 1 1 1
(a) A single 3-to-8 Decoder and any simple logic gate (e.g. AND/OR/INV) [5 points]
2 f
a 2
2
3x8
3
1
b 2
Decoder
4
0
c 2
5
(b) A single 8-to-1 Multiplexer and any simple logic gate (e.g. AND/OR/INV)
[5 points]
1 I0
0 I1
0 I2
f
8x1
0 I3
Mux
1 I4
1 I5
1 I6
I7
1
s2 s1 s0
a b c
(c) A single 4-to-1 Multiplexer and any simple logic gate (e.g. AND/OR/INV)
[10 points]
Inputs Output
a b C f
c I0
0 0 0 1 4x1
0 0 1 0 f
0 I1
Mux
0 1 0 Don’t care
0 1 1 0 1 I2
1 0 0 1 1 I3
1 0 1 1 s1 s0
1 1 0 Don’t care
1 1 1 1
a b
x J B
K B'
J A
1 K A'
Clock
JB = x
KB = x’
JA = Bx’
KA = 1
y = Ax
J K Q(t+1)
0 0 Q(t)
0 1 0
1 0 1
1 1 Q’(t)
0/0
00
1/0
0/0
1/0
01 11
0/0
1/1
1/1
0/0
10
(e) This circuit is actually a pattern detector. Assuming that the circuit is starting from “00
(AB)” state, what bit pattern does this circuit detect? [2 points]
101
4. Convert a T flip-flop to a JK flip-flop by including input gates to the T flip flop. The
gates needed for the input of the T flip flop can be determined by means of sequential
circuit design procedures. The sequential circuit to be considered will have one T flip flop
and two inputs, J and K.
(b) Simplify the equation for T using the K-Map method. [5 points]
1 1 T=Q’J+QK
1 1
(c) Put your answer in the form of a logic diagram below. [5 points]
5. Design a sequential circuit with two D flip flops, and two inputs, E and x. If E =0, the circuit
remains in the same state regardless of the value of x. When E = 1 and x = 1, the circuit goes
through the state transitions from 00 to 01 to 10 back to 00, and repeats. When E = 1 and x = 0,
the circuit goes through the state transitions from 00 to 10 to 01 back to 00, and repeats. The
circuit is to be designed by treating the unused state(s) as don’t care condition(s). The final
circuit must be analyzed to ensure that it is self-correcting. [25 points]
Ex
AB
00 01 11 10
00 1
10 1 1
Ex
AB
00 01 11 10
00 1
10 1
D A
A'
D B
B'
Clock