Faculty of Engineering: Electrical and Electronic Engineering Department
Faculty of Engineering: Electrical and Electronic Engineering Department
Faculty of Engineering: Electrical and Electronic Engineering Department
Fall 2011-12
Instructors:
M. K. Uyguroğlu
H. Demirel
Final EXAMINATION
Number of Problems: 5
Good Luck
STUDENT’S
NUMBER
NAME SOLUTIONS
SURNAME
GROUP NO
B’C
B’D’
A
b) Simplify the following function and implement it by using two-level NOR gates. (10 pts)
A’
B’
F’(A,B,C,D)=A’ +B’
F(A,B,C,D)=(A’ + B’)’
Question 2 (20points):
Implement a full adder circuit by using:
a) 3 – to - 8 line Decoder (10 pts)
b) 4 X 1 Multiplexers. (10 pts)
x y z C S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
x y z C
0 0 0 0
0 0 1 0 I0=0
0 1 0 0
I1=z
0 1 1 1
1 0 0 0
I2=z
1 0 1 1
1 1 0 1
I3=1
1 1 1 1
x y z S
0 0 0 0
0 0 1 1 I0=z
0 1 0 1
I1=z’
0 1 1 0
1 0 0 1 I2=z’
1 0 1 0
1 1 0 0 I3=z
1 1 1 1
CLK
x
K
Ax’
J B
CLK
x K
Clock
JA= x’B’
KA=x
JB=Ax’
KB=x
0/0 1/0
0/1
a) Starting from state 00 determine state transitions and
00 10
output sequence that will be generated when an input
sequence of 01011011011110 is applied. (5 pts)
b) Design a sequential circuit using D flip fops. (15 pts)
1/0 0/1 1/0
0/1
01 11
1/0
a)
State 00 00 01 00 01 11 00 01 11 00 01 11 10 10 00
Input 0 1 0 1 1 0 1 1 0 1 1 1 1 0
Output 0 0 1 0 0 1 0 0 1 0 0 0 0 1
b)
Present State Input Next State Output Flip-flop Inputs
A B x A B y DA DB
0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 1
0 1 0 0 0 1 0 0
0 1 1 1 1 0 1 1
1 0 0 0 0 1 0 0
1 0 1 1 0 0 1 0
1 1 0 0 0 1 0 0
1 1 1 1 0 0 1 0
DB = A’x
DA = Ax + Bx = (A + B) x y = Bx’+Ax’= (A + B)x’
Design a counter which counts down, with the repeated sequence: 2, 1, 0, when the input to the
counter circuit is 1. The counter doesn’t count (stays at the same state) when the input is 0. The
circuit is to be designed by treating the unused states as don’t care conditions. Analyze the circuit
obtained from the design to determine the effect of the unused states. Use T flip flops in your
design.
TA=B’x TB=Ax+Bx=(A+B)x