Chapter 2
Chapter 2
PROBLEMS
A B C T1 T2
0 0 0 1 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 0 1
1 0 1 0 1
1 1 0 0 1
1 1 1 0 1
2.19* Express the following function as a sum of minterms and as a product of maxterms:
F(A, B, C, D) = B⬘D + A⬘D + BD
2.20 Express the complement of the following functions in sum‐of‐minterms form:
(a) F(A,B ,C, D) = g (2, 4, 7, 10, 12, 14)
(b) F(x, y, z) = w (3, 5, 7)
2.21 Convert each of the following to the other canonical form:
(a) F(x, y, z) = g (1, 3, 5)
(b) F(A, B, C, D) = w (3, 5, 8, 11)
2.22* Convert each of the following expressions into sum of products and product of sums:
(a) (u + xw)(x + u⬘v)
(b) x⬘ + x(x + y⬘)(y + z⬘)
2.23 Draw the logic diagram corresponding to the following Boolean expressions without sim-
plifying them:
(a) BC⬘ + AB + ACD
(b) (A + B)(C + D)(A⬘ + B + D)
(c) (AB + A⬘B⬘)(CD⬘ + C⬘D)
(d) A + CD + (A + D')(C' + D)
2.24 Show that the dual of the exclusive‐OR is equal to its complement.
2.25 By substituting the Boolean expression equivalent of the binary operations as defined in
Table 2.8, show the following:
(a) The inhibition operation is neither commutative nor associative.
(b) The exclusive‐OR operation is commutative and associative.
2.26 Show that a positive logic NAND gate is a negative logic NOR gate and vice versa.
2.27 Write the Boolean equations and draw the logic diagram of the circuit whose outputs are
defined by the following truth table:
Table P2.27
f1 f2 a b c
1 1 0 0 0
0 1 0 0 1
1 0 0 1 0
1 1 0 1 1
1 0 1 0 0
0 1 1 0 1
1 0 1 1 1
2.28 Write Boolean expressions and construct the truth tables describing the outputs of the
circuits described by the logic diagrams in Fig. P2.28.
2.29 Determine whether the following Boolean equation is true or false.
x⬘y⬘ + x⬘z + x⬘z⬘ = x⬘z⬘ + y⬘z⬘ + x⬘z
72 Chapter 2 Boolean Algebra and Logic Gates
a
y1
a
b
b
c
c y
d y2
d
e
e
f
(a) (b)
FIGURE P2.28
REFERENCES
1. Boole, G. 1854. An Investigation of the Laws of Thought. New York: Dover.
2. Dietmeyer, D. L. 1988. Logic Design of Digital Systems, 3rd ed. Boston: Allyn and Bacon.
3. Huntington, E. V. Sets of independent postulates for the algebra of logic. Trans. Am. Math.
Soc., 5 (1904): 288–309.
4. IEEE Standard Hardware Description Language Based on the Verilog Hardware Descrip-
tion Language, Language Reference Manual (LRM), IEEE Std.1364‐1995, 1996, 2001,
2005, The Institute of Electrical and Electronics Engineers, Piscataway, NJ.
5. IEEE Standard VHDL Language Reference Manual (LRM), IEEE Std. 1076‐1987, 1988,
The Institute of Electrical and Electronics Engineers, Piscataway, NJ.
6. Mano, M. M. and C. R. Kime. 2000. Logic and Computer Design Fundamentals, 2nd ed.
Upper Saddle River, NJ: Prentice Hall.
7. Shannon, C. E. A symbolic analysis of relay and switching circuits. Trans. AIEE, 57 (1938):
713–723.
CHAPTER 2
2.1 (a)
xyz x+y+z (x + y + z)' x' y' z' x' y' z' xyz (xyz) (xyz)' x' y' z' x' + y' + z'
000 0 1 1 1 1 1 000 0 1 1 1 1 1
001 1 0 1 1 0 0 001 0 1 1 1 0 1
010 1 0 1 0 1 0 010 0 1 1 0 1 1
011 1 0 1 0 0 0 011 0 1 1 0 0 1
100 1 0 0 1 1 0 100 0 1 0 1 1 1
101 1 0 0 1 0 0 101 0 1 0 1 0 1
110 1 0 0 0 1 0 110 0 1 0 0 1 1
111 1 0 0 0 0 0 111 1 0 0 0 0 0
(b) (c)
000 0 0 0 0 000 0 0 0 0
001 0 0 1 0 001 0 0 0 0
010 0 1 0 0 010 0 0 0 0
011 1 1 1 1 011 0 0 0 0
100 1 1 1 1 100 0 0 0 0
101 1 1 1 1 101 1 0 1 1
110 1 1 1 1 110 1 1 0 1
111 1 1 1 1 111 1 1 1 1
(c) (d)
000 0 0 0 0 0 000 0 0 0 0
001 0 1 1 0 1 001 0 0 0 0
010 0 1 1 1 1 010 0 0 0 0
011 0 1 1 1 1 011 1 0 0 0
100 1 0 1 1 1 100 0 0 0 0
101 1 1 1 1 1 101 0 0 0 0
110 1 1 1 1 1 110 0 0 1 0
111 1 1 1 1 1 111 1 1 1 1
2.2 (a) xy + xy' = x(y + y') = x
(b) (x + y)(x + y') = x + yy' = x(x +y') + y(x + y') = xx + xy' + xy + yy' = x
(f) a'bc + abc' + abc + a'bc' = a'b(c + c') + ab(c + c') = a'b + ab = (a' + a)b = b
2.3 (a) ABC + A'B + ABC' = AB + A'B = B
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
10
(f) (a' + c')(a + b' + c') = a'a + a'b' + a'c' + c'a + c'b' + c'c' = a'b' + a'c' + ac' + b'c' = c' + b'(a' + c')
= c' + b'c' + a'b' = c' + a'b'
2.4 (a) A'C' + ABC + AC' = C' + ABC = (C + C')(C' + AB) = AB + C'
(d) (A' + C)(A' + C')(A + B + C'D) = (A' + CC')(A + B + C'D) = A'(A + B + C'D)
= AA' + A'B + A'C'D = A'(B + C'D)
(e) ABC'D + A'BD + ABCD = AB(C + C')D + A'BD = ABD + A'BD = BD
2.5 (a)
x y Fsimplified
(b)
x y
Fsimplified
(c)
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
11
x y z
Fsimplified
(d)
A B 0
Fsimplified
(e)
x y z
Fsimplified
(f)
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
12
x y z
Fsimplified
2.6 (a)
A B C
Fsimplified
(b)
x y z
Fsimplified
(c)
x y
Fsimplified
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
13
(d)
w x y z
Fsimplified
(e)
A B C D
Fsimplified = 0
(f)
w x y z
Fsimplified
2.7 (a)
A B C D
Fsimplified
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
14
(b)
w x y z
Fsimplified
(c)
A B C D
Fsimplified
(d)
A B C D
Fsimplified
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
15
(e)
A B C D
Fsimplified
2.8 F' = (wx + yz)' = (wx)'(yz)' = (w' + x')(y' + z')
000 0 000 1
001 1 001 0
010 0 010 1
011 0 011 1
100 1 100 0
101 1 101 0
110 1 110 0
111 1 111 1
2.12 A = 1011_0001
B = 1010_1100
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
16
(u + x')
Y = [(u + x')(y' + z)]
(y' + z)
(b)
u x y
x
Y = (u xor y)' + x
(u xor y)'
(c)
u x y z
(u'+ x')
Y = (u'+ x')(y + z')
(y + z')
(d)
u x y z
u(x xor z)
Y = u(x xor z) + y'
y'
(e)
u x y z
u
yz
Y = u + yz +uxy
uxy
(f)
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
17
u x y
Y = u + x + x'(u + y')
x'(u + y')
(u + y')
2.14 (a)
x y z
(b)
x y z
F = xy + x'y' + y'z
F = xy + x'y' + y'z
F = xy + x'y' + y'z
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
18
(e)
x y z
F = xy + x'y' + y'z
∑ (3, 5, 6, 7) = Π (0,1, 2, 4)
T1 = A'B'C' + A'B'C + A'BC' T2 = A'BC + AB'C' + AB'C + ABC' + ABC
2.16 (a) F(A, B, C) = A'B'C' + A'B'C + A'BC' + A'BC + AB'C' + AB'C + ABC' + ABC
= A'(B'C' + B'C + BC' + BC) + A((B'C' + B'C + BC' + BC)
= (A' + A)(B'C' + B'C + BC' + BC) = B'C' + B'C + BC' + BC
= B'(C' + C) + B(C' + C) = B' + B = 1
(b) F(x1, x2, x3, ..., xn) = Σmi has 2n/2 minterms with x1 and 2n/2 minterms with x'1, which can be factored
and removed as in (a). The remaining 2n-1 product terms will have 2n-1/2 minterms with x2 and 2n-1/2
minterms with x'2, which and be factored to remove x2 and x'2. continue this process until the last term is
left and xn + x'n = 1. Alternatively, by induction, F can be written as F = xnG + x'nG with G = 1. So F =
(xn + x'n)G = 1.
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
19
abcd F
0000 0
0001 0
0010 0
0011 1
0100 1
0101 0
0110 0
0111 1
1000 0
1001 0
1010 0
1011 1
1100 1
1101 0
1110 1
1111 1
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
20
abcd F
0000 1
0001 1
0010 0
0011 0
0100 1
0101 1
0110 0
0111 0
1000 0
1001 0
1010 1
1011 1
1100 1
1101 0
1110 1
1111 0
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
21
2.18
(a)
wx y z F F = xy'z + x'y'z + w'xy + wx'y + wxy
F = Σ(1, 5, 6, 7, 9, 10 11, 13, 14, 15 )
00 0 0 0
00 0 1 1
00 1 0 0
00 1 1 0
01 0 0 0
01 0 1 1
01 1 0 1
01 1 1 1
10 0 0 0
10 0 1 1
10 1 0 1
10 1 1 1
11 0 0 0
11 0 1 1
11 1 0 1
11 1 1 1
(b)
x
y' 5 - Three-input AND gates
z 2 - Three-input OR gates
x' Alternative: 1 - Five-input OR gate
y' 4 - Inverters
z
w'
x
y
w
x'
y
w
x F
y
(d) F = y'z + yw + yx) = Σ(1, 5, 9, 13 , 10, 11, 13, 15, 6, 7, 14, 15)
= Σ(1, 5, 6, 7, 9, 10, 11, 13, 14, 15)
(e)
y'
z F
y
x
w
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
22
(b) F(A, B, C, D) = Π(3, 5, 8, 11) = Σ(0, 1, 2, 4, 6, 7, 9, 10, 12, 13, 14, 15)
2.22 (a) (u + xw)(x + u'v) = ux + uu'v + xxw + xwu'v = ux + xw + xwu'v
= ux + xw = x(u + w)
= ux + xw (SOP form)
= x(u + w) (POS form)
(b) x' + x(x + y')(y + z') = x' + x(xy + xz' + y'y + y'z')
= x' + xy + xz' + xy'z' = x' + xy +xz' (SOP form)
= (x' + y + z') (POS form)
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
23
A B C D
A B C D
(d) A + CD + (A + D')(C' + D)
A B C D
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
24
(x ⊕ y) ⊕ z = ∑(1, 2, 4, 7) = x ⊕ (y ⊕ z) Associative
2.26
NAND NOR
Gate (Positive logic) (Negative logic)
xy z xy z xy z
LL H 00 1 11 0
LH H 01 1 10 0
HL H 10 1 01 0
HH L 11 0 00 1
NOR NAND
Gate (Positive logic) (Negative logic)
xy z xy z xy z
LL H 00 1 11 0
LH L 01 0 10 1
HL L 10 0 01 1
HH L 11 0 00 1
a' a'
b'
a' c'
a' b
b
c' c f1
a' a'
b b
c c'
a' a
b f1 b'
c c'
a
b
c
a'
b' a'
f2
b'
c
a' b
b f2
c c
a a
b' b'
c c'
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
25
0 0000 0 1 0000 0
0 0001 0 1 0001 1
0 0010 0 1 0010 0
0 0011 0 1 0011 1
0 0100 0 1 0100 0
0 0101 0 1 0101 1
0 0110 0 1 0110 0
0 0111 0 1 0111 1
0 0
0 1000 0 1 1000 0
0 1001 0 1 1001 1
0 1010 0 1 1010 0
0 1011 0 1 1011 1
0 1100 0 1 1100 0
0 1101 0 1 1101 1
0 1110 0 1 1110 0
0 1111 0 1 1111 0
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.
26
y1 = Σ (2, 3, 6, 7, 8, 9, 10 ,11, 12, 13, 14, 15, 18, 19, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35 )
y2 = Σ (3, 7, 9, 13, 15, 35, 39, 41, 43, 45, 47, 51, 55)
ab cdef y1 y2 ab cdef y1 y2 ab cdef y1 y2 ab cdef y1 y2
Digital
Design
With
An
Introduction
to
the
Verilog
HDL
–
Solution
Manual.
M.
Mano.
M.D.
Ciletti,
Copyright
2012,
All
rights
reserved.