Capitulo 5
Capitulo 5
Open file AL05 in the Applied Logic folder on the website. Run the simulation of the
valve-control logic using your Multisim software and observe the operation. Create
a new Multisim file, connect the temperature control logic, and run the simulation.
SUMMARY
s !.$
/2 LOGIC PRODUCES AN OUTPUT EXPRESSION IN 3/0 FORM
s !.$
/2
)NVERT LOGIC PRODUCES A COMPLEMENTED 3/0 FORM WHICH IS ACTUALLY A 0/3 FORM
s 4HE OPERATIONAL SYMBOL FOR EXCLUSIVE
/2 IS !. An exclusive-OR expression can be stated in
two equivalent ways:
AB + AB = A ! B
s 4O DO AN ANALYSIS OF A LOGIC CIRCUIT START WITH THE LOGIC CIRCUIT AND DEVELOP THE "OOLEAN OUTPUT
expression or the truth table or both.
s )MPLEMENTATION OF A LOGIC CIRCUIT IS THE PROCESS IN WHICH YOU START WITH THE "OOLEAN OUTPUT
expressions or the truth table and develop a logic circuit that produces the output function.
s !LL .!.$ OR ./2 LOGIC DIAGRAMS SHOULD BE DRAWN USING APPROPRIATE DUAL SYMBOLS SO
that bubble outputs are connected to bubble inputs and nonbubble outputs are connected to
nonbubble inputs.
s 7HEN TWO NEGATION INDICATORS BUBBLES ARE CONNECTED THEY EFFECTIVELY CANCEL EACH OTHER
s ! 6($, COMPONENT IS A PREDEFINED LOGIC FUNCTION STORED FOR USE THROUGHOUT A PROGRAM OR IN
other programs.
s ! COMPONENT INSTANTIATION IS USED TO CALL FOR A COMPONENT IN A PROGRAM
s ! 6($, SIGNAL EFFECTIVELY ACTS AS AN INTERNAL INTERCONNECTION IN A 6($, STRUCTURAL DESCRIPTION
KEY TERMS
Key terms and other bold terms in the chapter are defined in the end-of-book glossary.
Component A VHDL feature that can be used to predefine a logic function for multiple use
throughout a program or programs.
Negative-AND The dual operation of a NOR gate when the inputs are active-LOW.
Negative-OR The dual operation of a NAND gate when the inputs are active-LOW.
Node A common connection point in a circuit in which a gate output is connected to one or more
gate inputs.
Signal A waveform; a type of VHDL object that holds data.
Signal tracing A troubleshooting technique in which waveforms are observed in a step-by-step
manner beginning at the input and working toward the output or vice versa. At each point the
observed waveform is compared with the correct signal for that point.
Universal gate Either a NAND gate or a NOR gate. The term universal refers to the property of
a gate that permits any logic function to be implemented by that gate or by a combination of that
kind.
M05_FLOY5983_11_GE_C05.indd Page 300 19/11/14 9:11 AM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
TRUE/FALSE QUIZ
SELF-TEST
Problems 301
PROBLEMS
Answers to odd-numbered problems are at the end of the book.
A
B
A
C X
B X
D
C
(a) (b)
FIGURE 5–54
fg05_05400
3. Write the output expression for each circuit as it appears in Figure 5–55.
A A A
X
B B
X X B
(a) (b) (c)
A
A B
A B
X
B
X X
C
C
(d) (e) (f)
FIGURE 5–55
fg05_05500
M05_FLOY5983_11_GE_C05.indd Page 302 19/11/14 9:11 AM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
4. Write the output expression for each circuit as it appears in Figure 5–56 and then change each
circuit to an equivalent AND-OR configuration.
5. Develop the truth table for each circuit in Figure 5–55.
6. Develop the truth table for each circuit in Figure 5–56.
7. Show that an exclusive-NOR circuit produces a POS output.
A
A
B
B
X C X
C
D D
(a) (b)
A A
B
B X
C X
D C
E D
(c) (d)
A
B
A
C
B
D
X X
C E
D F
E G
(e)
H
(f)
FIGURE 5–56
fg05_05600
Problems 303
11. Use AND gates, OR gates, and inverters as needed to implement the following logic expres-
sions as stated:
(a) X = AB + BC
(b) X = A(B + C)
(c) X = AB + AB
(d) X = ABC + B(EF + G)
(e) X = A[BC(A + B + C + D)]
(f) X = B(CDE + EFG)(AB + C)
12. Use NAND gates, NOR gates, or combinations of both to implement the following logic
expressions as stated:
(a) X = AB + CD + (A + B)(ACD + BE)
(b) X = ABC D + DEF + AF
(c) X = A[B + C(D + E)]
13. Implement a logic circuit for the truth table in Table 5–8.
TABLE 5–8
Inputs Output
A B C X
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
14. Implement a logic circuit for the truth table in Table 5–9.
TABLE 5–9
Inputs Output
A B C D X
0 0 0 0 0
0 0 0 1 0
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
M05_FLOY5983_11_GE_C05.indd Page 304 17/11/14 5:59 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
15. Simplify the circuit in Figure 5–57 as much as possible, and verify that the simplified circuit is
equivalent to the original by showing that the truth tables are identical.
16. Repeat Problem 15 for the circuit in Figure 5–58.
A A
B B
C X
C
FIGURE 5–57 FIGURE 5–58
fg05_05700 fg05_05800
17. Minimize the gates required to implement the functions in each part of Problem 11 in SOP form.
18. Minimize the gates required to implement the functions in each part of Problem 12 in SOP
form.
19. Minimize the gates required to implement the function of the circuit in each part of Figure
5–56 in SOP form.
A
A
B X
B
FIGURE 5–59
fg05_05900
29. For the logic circuit in Figure 5–60, draw the output waveform in proper relationship to the
inputs.
A
A
B X
B
FIGURE 5–60
fg05_06000
M05_FLOY5983_11_GE_C05.indd Page 305 17/11/14 5:59 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
Problems 305
30. For the input waveforms in Figure 5–61, what logic circuit will generate the output waveform
shown?
Inputs B
Output X
FIGURE 5–61
fg05_06100
31. Repeat Problem 30 for the waveforms in Figure 5–62.
Inputs B
Output X
FIGURE 5–62
fg05_06200
32. For the circuit in Figure 5–63, draw the waveforms at the numbered points in the proper rela-
tionship to each other.
A A 1
B B 3
C C 4
D D 5
2 X
E E
F F
FIGURE 5–63
fg05_06300
33. Assuming a propagation delay through each gate of 10 nanoseconds (ns), determine if the
desired output waveform X in Figure 5–64 (a pulse with a minimum tW 5 25 ns positioned as
shown) will be generated properly with the given inputs.
A A
G1
B B
G2
C C
100 ns pulse width G3
D D
G4 X
E E
X
25 ns minimum
FIGURE 5–64
fg05_06400
Section 5–6 Combinational Logic with VHDL
34. Describe a 2-input NAND gate with VHDL.
35. Describe a 3-input AND gate with VHDL.
36. Write a VHDL program using the data flow approach (Boolean expressions) to describe the
logic circuit in Figure 5–54(b).
37. Write VHDL programs using the data flow approach (Boolean expressions) for the logic
circuits in Figure 5–55(e) and (f).
M05_FLOY5983_11_GE_C05.indd Page 306 17/11/14 5:59 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
38. Write a VHDL program using the structural approach for the logic circuit in Figure 5–56(d).
Assume component declarations for each type of gate are already available.
39. Repeat Problem 38 for the logic circuit in Figure 5–56(f).
40. Describe the logic represented by the truth table in Table 5–8 using VHDL by first converting it
to SOP form.
41. Develop a VHDL program for the logic in Figure 5–65, using both the data flow and the struc-
tural approach. Compare the resulting programs.
A
G1
B
G2
C G4 X
D
G3
E
FIGURE 5–65
42. Develop a VHDL program for the logic in Figure 5–66, using both the data flow and the struc-
tural approach. Compare the resulting programs.
A
B G3
G2
C G1 X
G4
G5
D
E
FIGURE 5–66
43. Given the following VHDL program, create the truth table that describes the logic circuit.
entity CombLogic is
port (A, B, C, D: in bit; X: out bit);
end entity CombLogic;
architecture Example of CombLogic is
begin
X ,5 not((not A and not B) or (not A and not C) or (not A and not D) or
(not B and not C) or (not B and not D) or (not D and not C));
end architecture Example;
44. Describe the logic circuit shown in Figure 5–67 with a VHDL program, using the data flow
approach.
45. Repeat Problem 44 using the structural approach.
A1
G1
A2
G2
G6
G5 X
B1
G3
B2
G7 G4
FIGURE 5–67
fg05_07200
M05_FLOY5983_11_GE_C05.indd Page 307 17/11/14 5:59 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
Problems 307
A A
B B
C C
D D
FIGURE 5–68
fg05_06500
47. The output waveform in Figure 5–69 is incorrect for the inputs that are applied to the circuit.
Assuming that one gate in the circuit has failed, with its output either an apparent constant HIGH
or a constant LOW, determine the faulty gate and the type of failure (output open or shorted).
A
A G1
B
B G2
C G4
C D
D G3
E
E
FIGURE 5–69
fg05_06600
48. Repeat Problem 47 for the circuit in Figure 5–70, with input and output waveforms as shown.
A
A G1
B
B
C
C G2 G4 X
D
D
E E
G3
F F
FIGURE 5–70
fg05_06700
49. By examining the connections in Figure 5–71, determine the driving gate and load gate(s).
Specify by device and pin numbers.
1 74HC00 2 74HC00
FIGURE 5–71
fg05_06800
M05_FLOY5983_11_GE_C05.indd Page 308 17/11/14 5:59 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
50. Figure 5–72(a) is a logic circuit under test. Figure 5–72(b) shows the waveforms as observed
on a logic analyzer. The output waveform is incorrect for the inputs that are applied to the cir-
cuit. Assuming that one gate in the circuit has failed, with its output either an apparent constant
HIGH or a constant LOW, determine the faulty gate and the type of failure.
A
B
C
A
G1
B D
C G2 G4 X E
D
E F
G3
F
X
(a) (b)
FIGURE 5–72
fg05_06900
51. The logic circuit in Figure 5–73 has the input waveforms shown.
(a) Determine the correct output waveform in relation to the inputs.
(b) Determine the output waveform if the output of gate G3 is open.
(c) Determine the output waveform if the upper input to gate G5 is shorted to ground.
A A
B G3
B G2
C G1 X
C
G4
G5
D D
E E
FIGURE 5–73
fg05_07000
52. The logic circuit in Figure 5–74 has only one intermediate test point available besides the output,
as indicated. For the inputs shown, you observe the indicated waveform at the test point. Is this
waveform correct? If not, what are the possible faults that would cause it to appear as it does?
A TP
B
A
C B
D
C
E
D X
F
E
TP F
FIGURE 5–74
fg05_07100
Applied Logic
53. Describe the function of each of the three sensors in the tank.
54. Implement the inlet valve logic using NOR gates and inverters.
55. Repeat Problem 54 for the outlet valve logic.
56. Implement the temperature control logic using XNOR gates.
57. Design a circuit to enable an additive to be introduced into the syrup through another inlet only
when the temperature is at the specified value and the syrup level is at the low-level sensor.
M05_FLOY5983_11_GE_C05.indd Page 309 17/11/14 6:00 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
Answers 309
ANSWERS
SECTION CHECKUPS
Section 5–1 Basic Combinational Logic Circuits
1. (a) AB + CD = 1 # 0 + 1 # 0 = 1 (b) AB + CD = 1 # 1 + 0 # 1 = 0
(c) AB + CD = 0 # 1 + 1 # 1 = 0
2. (a) AB + AB = 1 # 0 + 1 # 0 = 1 (b) AB + AB = 1 # 1 + 1 # 1 = 0
(c) AB + AB = 0 # 1 + 0 # 1 = 1 (d) AB + AB = 0 # 0 + 0 # 0 = 0
3. X = 1 when ABC = 000, 011, 101, 110, and 111; X = 0 when ABC = 001, 010, and 100
4. X = AB + A B; the circuit consists of two AND gates, one OR gate, and two inverters. See
Figure 5–6(b) for diagram.
A
B
X = C (A + B)(B + D)
D
C
FIGURE 5–75
fg05_07300
M05_FLOY5983_11_GE_C05.indd Page 311 17/11/14 6:00 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
Answers 311
A
A B
B C
C
ABC + DE D ABC + D + E
D
E
E
(a) (b)
FIGURE 5–76
fg05_07400
AHIGH A
B B
C
X X
B
C
D
Y1 A
Y2 B
Y3 C
Y4 D
X X
A
B
C
D
G4
FIGURE 5–81
fg05_07900
M05_FLOY5983_11_GE_C05.indd Page 312 17/11/14 6:00 PM user /204/PH01677_PIV/9781292075983_FLOYD/FLOYD_DIGITAL_FUNDAMENTALS11_PIE_97812920759 ...
TRUE/FALSE QUIZ
1. F 2. T 3. T 4. F 5. F
6. T 7. F 8. T 9. F 10. T
SELF-TEST
1. (c) 2. (d) 3. (a) 4. (a) 5. (c) 6. (a) 7. (a) 8. (d)
9. (d) 10. (e) 11. (e) 12. (c)