EENG (INFE) 115 F16-17 Midterm Exam - Solutions
EENG (INFE) 115 F16-17 Midterm Exam - Solutions
EENG (INFE) 115 F16-17 Midterm Exam - Solutions
Instructors:
M. K. Uyguroğlu
G. Yemişcioğlu
Midterm EXAMINATION
Duration : 90 minutes
Number of Questions: 4
Good Luck
STUDENT’S
NUMBER
NAME
SURNAME
GROUP NO
Question Points
1 25
2 25
3 25
4 25
TOTAL 100
1 1
1 24 1 23 1 21 1 1 22 1 24 16 8 2 1
4 16
27.31
b) Convert the following decimal numbers to binary: (Show your steps.) (8 pts.)
i. 37
Remainder
37/2 = 18 1
18/2 = 9 0
9/2 = 4 1
4/2 = 2 0
2/2 = 1 0
½=0 1
37 10 1001012
ii. 0.9
.
0.9 x 2 = 1.8 1
0.8 x 2 = 1.6 1
0.6 x 2 = 1.2 1
0.2 x 2 = 0.4 0
0.4 x 2 = 0.8 0
0.8 x 2 = 1.6 1
.
.
0.910 0.11100 2
1100 is repeated
010100101010.1100 52 A.C 16
5 2 A C
010100101010.110 2452.6 8
2 4 5 2 6
d) Convert +20 and +45 to binary, using the signed-2’s complement representation and
enough digit to accommodate the numbers. Then perform the binary equivalent of (-20) –
(+45). (10 pts.)
Question 2
a) Simplify the Boolean function F x, y, z 1,3, 6, 7 in sum of products
using algebraic manipulation and implement it
i. with AND and inverter gates
ii. with OR and inverter gates
(15 pts.)
F x, y , z 1,3, 6, 7 0, 2, 4,5
F x, y, z xyz xyz xyz xyz xz y y ' xy z z ' xz xy
1 1
Question 3
For a given Boolean function F w, x, y, z 1, 4,5, 6,12,14,15 which has the don’t
care conditions d w, x, y, z 3, 7,11
a) Determine the sum of products (SOP).
b) Implement F with only NAND gates.
c) Determine the product of sums (POS).
d) Implement F with only NOR gates.
(25 pts.)
yz yz yz yz
wx 0 1 0
wx 1 1 1
wx 1 0 1 1
wx 0 0 0
F w, x, y, z wz xy xz
F w, x, y, z xz wyz
F w, x, y, z x z w y z
Question 4
F x, y , z y xz
F x, y , z y xz '
F x, y, z yz xy
F x, y, z y z x y
F x, y, z y z x y