Professional Documents
Culture Documents
Islamabad Campus
Department of Electrical Engineering
Sessional Exam II
Spring 2018
EEE241: Digital Logic Design
BEE 2(D)
Marks: 70 Time: 70 minutes
Date: 25th April, 2018 Instructor: Riaz Hussain
T.A.: Ms. Asma Ramay
• Only registered students are allowed to take the exam
• Mobile phones are not allowed
• Closed book, closed notes
• No marks without proper procedure and explanation
Since, there are few input Gray codes (corresponding 10, 11, 12, 13, 14, 15) that have no representation in
the “8 4 –2 –1” code our circuit must indicate this. To handle this situation, we pick a code that is not used
for output “8 4 –2 –1” code (i.e. 0001, 0010, 0011, 1100, 1101, 1110). In this case we pick (0000), i.e.
when wxyz all are low the error is indicated.
𝑤𝑤 = 𝐵𝐵𝐵𝐵′ + 𝐴𝐴′𝐵𝐵𝐷𝐷
x:
AB \ CD
00 01 11 10
00 0 1 1 1
01 0 0 0 1
11 0 1 0 0
10 0 0 0 0
𝑦𝑦 = 𝐴𝐴′𝐷𝐷 + 𝐵𝐵𝐶𝐶′𝐷𝐷
z:
AB \ CD
00 01 11 10
00 0 1 0 1
01 1 0 1 0
11 0 1 1 1
10 1 1 1 1
Solution:
00 01 11 10
00 X X 0 1
01 1 X 0 0
00 01 11 10
00 X X 0 1
01 1 X 0 0
11 1 0 0 1
10 X 0 0 1
𝐹𝐹 ′ = 𝐷𝐷 + 𝐴𝐴′𝐵𝐵𝐵𝐵
𝐹𝐹 = (𝐷𝐷)′(𝐴𝐴′𝐵𝐵𝐵𝐵)′
NAND-AND
0 0 0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 0 1
0 1 0 1 1 1 1 1 0 1 1
0 1 1 1 1 1 1 0 1 1 1
1 0 0 1 1 1 0 1 1 1 1
1 0 1 1 1 0 1 1 1 1 1
1 1 0 1 0 1 1 1 1 1 1
1 1 1 0 1 1 1 1 1 1 1
Solution: