Chapter 1 Basic Principles of Digital Systems outlin e 1



Download 10.44 Mb.
Page5/66
Date20.10.2016
Size10.44 Mb.
#6681
1   2   3   4   5   6   7   8   9   ...   66

Section 2.2 Logic Switches and LED Indicators

2.8 Sketch the circuit of a single-pole single-throw (SPST)

switch used as a logic switch. Briefly explain how it

works.

2.9 Refer to Figure 2.10 (logic pushbuttons). Should the normally

open pushbutton be considered an active HIGH or

active LOW device? Briefly explain your choice.

2.10 Should the normally closed pushbutton be considered an

active HIGH or active LOW device? Why?



2.11 Briefly state what is required for an LED to illuminate.

2.12 Briefly state the relationship between the brightness of an

LED and the current flowing through it. Why is a series

resistor required?

2.13 Draw a circuit showing how an OR-gate output will illuminate

an LED when the gate output is LOW. Assume the

required series resistor is 470 _.

Section 2.3 Derived Logic Functions

2.14 For a 4-input NAND gate with inputs A, B, C, and D and

output Y:



a. Write the truth table and a descriptive sentence.

b. Write the Boolean expression.

c. Draw the logic circuit symbol in both distinctiveshape

and rectangular-outline symbols.



2.15 Repeat Problem 2.14 for a 4-input NOR gate.

2.16 State the active levels of the inputs and outputs of a

NAND gate and a NOR gate.



2.17 Write a descriptive sentence of the operation of a 5-input

NAND gate with inputs A, B, C, D, and E and output Y.

How many lines would the truth table of this gate have?

2.18 Repeat Problem 2.17 for a 5-input NOR gate.

2.19 A pump motor in an industrial plant will start only if the

temperature and pressure of liquid in a tank exceed a certain

level. The temperature sensor and pressure sensor,

shown in Figure 2.39 each produce a logic HIGH if the

measured quantities exceed this value. The logic circuit

interface produces a HIGH output to turn on the motor.

Draw the symbol and truth table of the gate that corresponds

to the action of the logic circuit.



2.20 Repeat Problem 2.19 for the case in which the motor is

activated by a logic LOW.



FIGURE 2.39

Problem 2.19: Temperature and Pressure Sensors



FIGURE 2.40

Problem 2.21: Circuit for Two-Way Switch



FIGURE 2.41

Problem 2.22: Logic Circuit

on a light from either the top or the bottom of the stairwell

and off at the other end. The circuit also allows anyone

coming along after you to do the same thing, no matter

which direction they are coming from.

The lamp is ON when the switches are in the same positions

and OFF when they are in opposite positions.

What logic function does this represent? Draw the truth

table of the function and use it to explain your reasoning.



2.22 Find the truth table for the logic circuit shown in Figure

2.41.


2.23 Recall the description of a 2-input Exclusive OR gate:

“Output is HIGH if one input is HIGH, but not both.”

This is not the best statement of the operation of a multiple-

input XOR gate. Look at the truth table derived in

Problem 2.22 and write a more accurate description of ninput

XOR operation.



Section 2.4 DeMorgan’s Theorems and Gate

Equivalence



2.24 For each of the gates in Figure 2.42:

a. Write the truth table.

b. Indicate with an * which lines on the truth table show

the gate output in its active state.



2.21 Figure 2.40 shows a circuit for a two-way switch for a

stairwell. This is a common circuit that allows you to turn



54 C H A P T E R 2 • Logic Functions and Gates

Section 2.5 Enable and Inhibit Properties

of Logic Gates



2.26 Draw the output waveform of the Exclusive NOR gate

when a square waveform is applied to one input and



a. The other input is held LOW

b. The other input is held HIGH

c. Convert the gate to its DeMorgan equivalent form.

d. Rewrite the truth table and indicate which lines on the

truth table show output active states for the DeMorgan

equivalent form of the gate.

2.25 Refer to Figure 2.43. State which two gates of the three

shown are DeMorgan equivalents of each other. Explain

your choice.

A

B



Y

FIGURE 2.44

Problem 2.28: Input Waveforms



FIGURE 2.45

Problem 2.29:Waveforms

How does this compare to the waveform that would

appear at the output of an Exclusive OR gate under the

same conditions?

2.27 Sketch the input waveforms represented by the following

32-bit sequences (use 1/4-inch graph paper, 1 square per

bit):

A: 0000 0000 0000 1111 1111 1111 1111 0000

B: 1010 0111 0010 1011 0101 0011 1001 1011

Assume that these waveforms represent inputs to a

logic gate. (Spaces are provided for readability only.)

Sketch the waveform for gate output Y if the gate function

is:

a. AND

b. OR

c. NAND

d. NOR

e. XOR

f. XNOR

2.28 Repeat Problem 2.27 for the waveforms shown in Figure

2.44.


2.29 The A and B waveforms shown in Figure 2.45 are inputs

to an OR gate. Complete the sketch by drawing the waveform

for output Y.

2.30 Repeat Problem 2.29 for a NOR gate.

2.31 Figure 2.46 shows a circuit that will make a lamp flash at

3 Hz when the gasoline level in a car’s gas tank drops below

a certain point. A float switch in the tank monitors

the level of gasoline. What logic level must the float

switch produce to make the light flash when the tank is

approaching empty? Why?



2.32 Repeat Problem 2.31 for the case where the AND gate is

replaced by a NOR gate.



2.33 Will the circuit in Figure 2.46work properly if theAND

gate is replaced by an ExclusiveORgate?Whyorwhy not?



2.34 Make a truth table for the tristate buffers shown in Figure

2.33. Indicate the high-impedence state by the notation

C B

A

Y



a.

C B


A

Y

c.



B

A

Y



d.

FIGURE 2.42

Problem 2.24: Logic Gates

X

Y

a. b. c.



X

Y

X



Y

FIGURE 2.43

Problem 2.25: Logic Gates

B

A

Y



b.

Answers to Section Review Problems 55



Section 2.1

2.1 AND: “A AND B AND C AND D must be HIGH to make Y

HIGH.” 2.2. OR: “A OR B OR C OR D must be HIGH to

make Y HIGH.”

Section 2.2

2.3 When the switch is open, it provides a logic HIGH because

of the pull-up resistor. A closed switch is LOW, due to the connection

to ground.

Section 2.3

2.4 XOR; 2.5 NAND; 2.6 NOR; 2.7 XNOR.

Section 2.4

2.8 Y _ A__B__C__D_

Section 2.5

2.9 An AND needs two HIGH inputs to make a HIGH output. If

the Control input is LOW, the output can never be HIGH; the

output remains LOW. An OR output is HIGH if one input is

HIGH. If the Control input is HIGH, the output is always HIGH,

regardless of the level at the Signal input. In both cases, the output

is “stuck” at one level, signifying that the gate is inhibited.



Section 2.6

2.10 Viewed from above, with the notch in the package away

from you, pin 1 is on the left side at the far end. The pins are

numbered counterclockwise from that point.

“Hi-Z” How do the enable properties of these gates differ

from gates such as AND and NAND?

Section 2.6 Integrated Circuit Logic Gates

2.35 Name two logic families used to implement digital logic

functions. How do they differ?



2.36 List the industry-standard numbers for a quadruple 2-input

NAND gate in low power Schottky TTL, CMOS, and

high-speed CMOS technologies.

2.37 Repeat Problem 2.36 for a quadruple 2-input NOR gate.

How does each numbering system differentiate between

the NAND and NOR functions?

2.38 List six types of packaging that a logic gate could

come in.


FIGURE 2.46

Problem 2.31: Gasoline Level Circuit

A N S W E R S T O S E C T I O N R E V I E W P R O B L E M S
57

❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚

❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚❘❙❚

C H A P T E R 3

Boolean Algebra and

Combinational Logic

O U T L I N E



3.1 Boolean

Expressions, Logic

Diagrams, and Truth

Tables


3.2 Sum-of-Products

(SOP) and Productof-

Sums (POS) Forms

3.3 Theorems of

Boolean Algebra



3.4 Simplifying SOP and

POS Expressions



3.5 Simplification by

the Karnaugh Map

Method

C H A P T E R O B J E C T I V E S



Upon successful completion of this chapter you will be able to:

• Explain the relationship between the Boolean expression, logic diagram,

and truth table of a logic gate network and be able to derive any one from

either of the other two.

• Draw logic gate networks in such a way as to cancel out internal inversions

automatically (bubble-to-bubble convention).

• Write the sum of products (SOP) or product of sums (POS) forms of a

Boolean equation.

• Use rules of Boolean algebra to simplify the Boolean expressions derived

from logic diagrams and truth tables.

• Apply the Karnaugh map method to reduce Boolean expressions and logic

circuits to their simplest forms.

In Chapter 3, we will examine the rudiments of combinational logic. A combinational

logic circuit is one in which two or more gates are connected together to combine several

Boolean inputs. These circuits can be represented several ways, as a logic diagram,

truth table, or Boolean expression.

A Boolean expression for a network of logic gates is often not in its simplest form. In

such a case, we may be using more components than would be required for the job, so it is

of benefit to us if we can simplify the Boolean expression. Several tools are available to us,

such as Boolean algebra and a graphical technique known as Karnaugh mapping. We can

also simplify the Boolean expression by taking care to draw the logic diagrams in such a

way as to automatically eliminate inverting functions within the circuit. _



58 C H A P T E R 3 • Boolean Algebra and Combinational Logic

3.1 Boolean Expressions, Logic Diagrams and Truth Tables

Logic gate network Two or more logic gates connected together.

Logic diagram A diagram, similar to a schematic, showing the connection of

logic gates.



Combinational logic Digital circuitry in which an output is derived from the

combination of inputs, independent of the order in which they are applied.



Combinatorial logic Another name for combinational logic.

In Chapter 2, we examined the functions of single logic gates. However, most digital circuits

require multiple gates. When two or more gates are connected together, they form a

logic gate network. These networks can be described by a truth table, a logic diagram

(i.e., a circuit diagram), or a Boolean expression. Any one of these can be derived from any

other.

A digital circuit built from gates is called a combinational (or combinatorial) logic



circuit. The output of a combinational circuit depends on the combination of inputs. The

inputs can be applied in any sequence and still produce the same result. For example, an

AND gate output will always be HIGH if all inputs are HIGH, regardless of the order in

which they became HIGH. This is in contrast to sequential logic, in which sequence matters;

a sequential logic output may have a different value with two identical sets of inputs

if those inputs were applied in a different order. We will study sequential logic in a later

chapter.

Boolean Expressions from Logic Diagrams



Bubble-to-bubble convention The practice of drawing gates in a logic diagram

so that inverting outputs connect to inverting inputs and noninverting outputs connect

to noninverting inputs.

Order of precedence The sequence in which Boolean functions are performed,

unless otherwise specified by parentheses.

Writing the Boolean expression of a logic gate network is similar to finding the expression

for a single gate. The difference is that in a multiple gate network, the inputs will usually

not consist of single variables, but compound expressions that represent outputs of previous

gates.


These compound expressions are combined according to the same rules as single variables.

In an OR gate, with inputs x and y, the output will always be x _ y regardless of

whether x and y are single variables (e.g., x _ A, y _ B, output _ A _ B) or compound expressions

(e.g., x _ AB, y _ AC, output _ AB _ AC).

Figure 3.1 shows a simple logic gate network, consisting of a single AND and a

single OR gate. The AND gate combines inputs A and B to give the output expression AB.

The OR combines the AND function and input C to yield the compound expression

AB _ C.

K E Y T E R M S

K E Y T E R M S

A AB


B

C

Y_AB_ C



FIGURE 3.1

Boolean Expression from a Gate Network



3.1 • Boolean Expressions, Logic Diagrams and Truth Tables 59

❘❙❚ EXAMPLE 3.1 Derive the Boolean expression of the logic gate network shown in Figure 3.2a.

A AB

CD

B



C

D

Y _ AB_CD



A

B

C



D

Y

a. Logic gate network



b. Boolean expression from logic gate network

FIGURE 3.2

Example 3.1

Figure 3.2b shows the gate network with the output terms indicated for each gate. The

AND and NAND functions are combined in an OR function to yield the output expression:



Y _ AB _ C_D_

❘❙❚


The Boolean expression in Example 3.1 includes a NAND function. It is possible to

draw the NAND in its DeMorgan equivalent form. If we choose the gate symbols so that

outputs with bubbles connect to inputs with bubbles, we will not have bars over groups of

variables, except possibly one bar over the entire function. In a circuit with many inverting

functions (NANDs and NORs), this results in a cleaner notation and often a clearer idea of

the function of the circuit.We will followthis notation, which we will refer to as the bubbleto-



bubble convention, as much as possible.

❘❙❚ EXAMPLE 3.2 Redraw the circuit in Figure 3.2 to conform to the bubble-to-bubble convention. Write the

Boolean expression of the new logic diagram.

Solution

A AB


B

C

D



Y _ AB _ C _D

C_D


FIGURE 3.3

Example 3.2

Using DeMorgan Equivalents to Simplify a Circuit

Figure 3.3 shows the new circuit. The NAND has been converted to its DeMorgan

equivalent so that its active-HIGH output drives an active-HIGH input on the OR gate. The

new Boolean expression is Y _ AB _ C_ _ D_. ❘❙❚

Boolean functions are governed by an order of precedence. Unless otherwise specified,

AND functions are performed first, followed by ORs. This order results in a form similar

to that of linear algebra, where multiplication is performed before addition, unless

otherwise specified.



Solution

60 C H A P T E R 3 • Boolean Algebra and Combinational Logic

Figure 3.4 shows two logic diagrams, one whose Boolean expression requires parentheses

and one that does not.

A AB


B

C

AB_ AC



AC

a. No parentheses required (AND, then OR)

A

B



C

(A _B


A_B

(A _B) _C)

A_B_ C

b. Parentheses required (OR, then AND)

FIGURE 3.4

Order of Precedence

The AND functions in Figure 3.4a are evaluated first, eliminating the need for parentheses

in the output expression. The expression for Figure 3.4b requires parentheses since

the ORs are evaluated first.

❘❙❚ EXAMPLE 3.3 Write the Boolean expression for the logic diagrams in Figure 3.5.



FIGURE 3.5

Example 3.5

Order of Precedence

A

B



Y

S

C



a.

P

Q



R

b.

3

2



1

3

2



1

Solution Examine the output of each gate and combine the resultant terms as required.

Figure 3.5a: Gate 1: A_ _ B_

Gate 2: B _ C

Gate 3: Y _ Gate 1 _ Gate2 _ A_ _ B_ _ B _ C

Figure 3.5b: Gate 1: P_ _ Q_ _ P _ Q_

Gate 2: Q _ R_

Gate 3: S _ G_a_t_e_1_ _ G_a_t_e_2_ _ (P _ Q_)(Q _ R_) _ (P _ Q_)(Q _ R_)

3.1 • Boolean Expressions, Logic Diagrams and Truth Tables 61

Note that when two bubbles touch, they cancel out, as in the doubly inverted P input

or the connection between the outputs of gates 1 and 2 and the inputs of gate 3. In the resultant

Boolean expression, bars of the same length cancel; bars of unequal length do not.

❘❙❚


❘❙❚ SECTION 3.1A REVIEW PROBLEM

3.1 Write the Boolean expression for the logic diagrams in Figure 3.6, paying attention to

the rules of order of precedence.

A

B



OUT

CD

a.

W

X

Z



Y

b.

Y

FIGURE 3.6

Section Review Problem 3.1

Logic Diagrams from Boolean Expressions



Levels of gating The number of gates through which a signal must pass from input

to output of a logic gate network.



Double-rail inputs Boolean input variables that are available to a circuit in both

true and complement form.



Synthesis The process of creating a logic circuit from a description such as a

Boolean equation or truth table.

We can derive a logic diagram from a Boolean expression by applying the order of precedence

rules. We examine an expression to create the first level of gating from the circuit inputs,

then combine the output functions of the first level in the second level gates, and so

forth. Input inverters are often not counted as a gating level, as we usually assume that each

variable is available in both true (noninverted) and complement (inverted) form. When input

variables are available to a circuit in true and complement form, we refer to them as



double-rail inputs.

The first level usually will be AND gates if no parentheses are present, OR gates if

parentheses are used. (Not always, however; parentheses merely tell us which functions to

synthesize first.) Although we will try to eliminate bars over groups of variables by use of

DeMorgan’s theorems and the bubble-to-bubble convention, we should recognize that a

bar over a group of variables is the same as having those variables in parentheses.

Let us examine the Boolean expression Y _ AC _ BD _ AD. Order of precedence

tells us that we synthesize the AND functions first. This yields three 2-input AND gates,

with outputs AC, BD, and AD, as shown in Figure 3.7a. In the next step, we combine these

AND functions in a 3-input OR gate, as shown in Figure 3.7b.

K E Y T E R M S



62 C H A P T E R 3 • Boolean Algebra and Combinational Logic

When the expression has OR functions in parentheses, we synthesize the ORs first, as

for the expression Y _ (A _ B)(A _ C _ D)(B _ C). Figure 3.8 shows this process. In the

first step, we synthesize three OR gates for the terms (A _ B), (A _ C _ D), and (B _ C).

We then combine these terms in a 3-input AND gate.

FIGURE 3.7

Logic Diagram for

Y _AC _ BD _AD

A AC


BD

AD

B



C

D

a. ANDs first

A

B

C



D

b. Combine ANDs in an OR gate

Y_ AC _BD _ AD

C

D

A



B

Y (A B)(A C



a. ORs first

b. Combine ORs in an AND gate

C

D



A

B

(A



(B

_B)


(A C D)

C)

_ _ _ _D)(B _C)



_

_ _


FIGURE 3.8

Logic Diagram for Y _ (A _ B)

(A _ C _ D) (B _ C)

❘❙❚ EXAMPLE 3.4 Synthesize the logic diagrams for the following Boolean expressions:

1. P _ QR_S_ _ S_T

2. X _ (W _ Z _ Y)V_ _ (W_ _ V)Y_

Solution

1. Recall that a bar over two variables acts like parentheses. Thus the QR_S_ term is synthesized

from a NAND, then an AND, as shown in Figure 3.9a. Also shown is the second

AND term, S_T.




Download 10.44 Mb.

Share with your friends:
1   2   3   4   5   6   7   8   9   ...   66




The database is protected by copyright ©ininet.org 2024
send message

    Main page