Docsity

Assignment 2 with Solutions for Background Study Digital Logic | ECE 349, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 349 Homework Assignment #2 Solutions
1. Find an expression for f=a0b0c0+abc0+a0bc +ab0cthat uses only the exclusive-OR
and complement operations.
f=a(bc0+b0c) + a0(b0c0+bc) = a(b⊕c) + a0(b⊕c)0
f=a0⊕b⊕c
2. The following table shows the input and output voltages for a 2-input logic gate circuit.
Translate the table to a truth table using positive logic and then negative logic. What
are the logic functions realized in each case?
e1e2e0e1e2e0e1e2e0
0 0 0 0 0 0 1 1 1
0 +5 +5 0 1 1 1 0 0
+5 0 +5 1 0 1 0 1 0
+5 +5 +5 1 1 1 0 0 0
OR AND
3. Express each of the following as minterm expansions.
(a) f(a, b, c) = a+b0c=a0b0c+ab0c0+ab0c+abc0+abc
(b) f(w, x, y) = QM(0,4,5,7) = x0y0z+x0yz0+x0yz +xyz 0
4. Express each of the following as maxterm expansions.
(a) f(a, b, c) = (a+b0)(a0+b+c)(b+c0)
= (a+b0+c0)(a+b0+c)(a0+b+c)(a0+b+c0)(a+b+c0)
(b) f(x, y, z) = Pm(1,3,5,6) = (x+y+z)(x+y0+z)(x0+y+z)(x0+y0+z0)
5. For f(a, b, c) = (ab+c)(a0+b0), find the minterm and maxterm expansions (use mand
Mnotation).
f(a, b, c) = Pm(1,3,5) = QM(0,2,4,6,7)
6. For the table below, express f as a minterm expansion (use mnotation) and as a
maxterm expansion (use Mnotation).
a b c f
0 0 0 0
0 0 1 1
0 1 0 X
0 1 1 1
1 0 0 0
1 0 1 X
1 1 0 1
1 1 1 0
f=Pm(1,3,6) + Pd(2,5) = QM(0,4,7) ·QD(2,5)
pf2

Partial preview of the text

Download Assignment 2 with Solutions for Background Study Digital Logic | ECE 349 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 349 Homework Assignment #2 Solutions

  1. Find an expression for f = a′b′c′^ + abc′^ + a′bc + ab′c that uses only the exclusive-OR and complement operations. f = a(bc′^ + b′c) + a′(b′c′^ + bc) = a(b ⊕ c) + a′(b ⊕ c)′ f = a′^ ⊕ b ⊕ c
  2. The following table shows the input and output voltages for a 2-input logic gate circuit. Translate the table to a truth table using positive logic and then negative logic. What are the logic functions realized in each case? e 1 e 2 e 0 e 1 e 2 e 0 e 1 e 2 e 0 0 0 0 0 0 0 1 1 1 0 +5 +5 0 1 1 1 0 0 +5 0 +5 1 0 1 0 1 0 +5 +5 +5 1 1 1 0 0 0

OR AND

  1. Express each of the following as minterm expansions. (a) f (a, b, c) = a + b′c = a′b′c + ab′c′^ + ab′c + abc′^ + abc (b) f (w, x, y) =

∏ M(0, 4 , 5 , 7) = x′y′z + x′yz′^ + x′yz + xyz′

  1. Express each of the following as maxterm expansions. (a) f (a, b, c) = (a + b′)(a′^ + b + c)(b + c′) = (a + b′^ + c′)(a + b′^ + c)(a′^ + b + c)(a′^ + b + c′)(a + b + c′) (b) f (x, y, z) =

∑ m(1, 3 , 5 , 6) = (x + y + z)(x + y′^ + z)(x′^ + y + z)(x′^ + y′^ + z′)

  1. For f (a, b, c) = (ab + c)(a′^ + b′), find the minterm and maxterm expansions (use m and M notation). f (a, b, c) =

∑ m(1, 3 , 5) =

∏ M(0, 2 , 4 , 6 , 7)

  1. For the table below, express f as a minterm expansion (use m notation) and as a maxterm expansion (use M notation). a b c f 0 0 0 0 0 0 1 1 0 1 0 X 0 1 1 1 1 0 0 0 1 0 1 X 1 1 0 1 1 1 1 0 f =

∑ m(1, 3 , 6) +

∑ d(2, 5) =

∏ M(0, 4 , 7) ·

∏ D(2, 5)

  1. For the truth table of the previous problem, find the simplest expression for f. f = bc′^ + a′c
  2. A bank vault has three locks with a different key for each lock. Each key is owned by a different person. In order to open the door, at least two people must insert their keys into the assigned locks. The signals A, B, and C are 1 if there is a key inserted into lock 1, 2, or 3, respectively. Write an equation for the variable Z, which is 1 iff the door should open. Z = AB + AC + BC
  3. A combinational switching network has four inputs (A, B, C, D) and one output Z. The output is 1 iff three or more of the inputs are 1. Design the network using two AND gates and three OR gates. Assume that each gate has a maximum of three inputs so that it will be necessary to partially factor your logic equation before you realize it. Z = AB(C +D)+CD(A+B) = BD(A+C)+AC(B +D) = BC(A+D)+AD(B +C)
  4. (Optional 2 Points) A combinational network has four inputs (a, b, c, d) and three out- puts (x, y, z). The outputs represent a binary number whose value equals the number of 1’s at the input. For example, if abcd = 1011, then xyz = 011. Find the maxterm expansion for x, y, and z. X =

∏ M(0, 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14) Y =

∏ M(0, 1 , 2 , 4 , 8 , 15) Z =

∏ M(0, 3 , 5 , 6 , 9 , 10 , 12 , 15)

  1. Provide the truth table for the following circuit.

A B C F L L L L L L H H L H L L L H H H H L L L H L H L H H L H H H H H

A

A B

F

C