0% found this document useful (0 votes)
5 views

C3-Combinational Logic Circuits

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

C3-Combinational Logic Circuits

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

12/17/2022

Chapter 3 Objectives
Chapter 3 – Combinational Logic Circuits
• Selected areas covered in this chapter:
– Converting logic expressions to sum-of-products
expressions.
– Boolean algebra and the Karnaugh map as tools to
simplify and design logic circuits.
– Operation of exclusive-OR & exclusive-NOR circuits.
– Designing simple logic circuits without a truth table.
– Basic characteristics of TTL and CMOS digital ICs.
– Basic troubleshooting rules of digital systems.
– Programmable logic device (PLD) fundamentals.
– Hierarchical design methods.
– Logic circuits using HDL control structures IF/ELSE,
IF/ELSIF, and CASE.
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-1 Sum-of-Products Form 3-1 Sum-of-Products Form

• A Sum-of-products (SOP) expression will appear • The product-of-sums (POS) form consists of two
as two or more AND terms ORed together. or more OR terms (sums) ANDed together.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-2 Simplifying Logic Circuits 3-3 Algebraic Simplification

• The circuits shown provide the same output • Place the expression in SOP form by applying
– Circuit (b) is clearly less complex. DeMorgan’s theorems and multiplying terms.
• Check the SOP form for common factors.
– Factoring where possible should eliminate one
or more terms.

Logic circuits can be simplified using


Boolean algebra and Karnaugh mapping.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-3 Algebraic Simplification 3-3 Algebraic Simplification

Simplify the logic circuit shown. Simplify the logic circuit shown.

The first step is to determine the expression for the output: z = ABC + AB • (A C) Factoring—the first & third terms above have
AC in common, which can be factored out:
Once the expression
is determined, break Since B + B = 1, then…
down large inverter
signs by DeMorgan’s
theorems & multiply Factor out A, which results in…
out all terms.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-3 Algebraic Simplification

Simplifed logic circuit.


Problems

z = A(C + B)

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. 10
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-4 Designing Combinational Logic Circuits

• To solve any logic design problem:


Problems – Interpret the problem and set up its truth table.
– Write the AND (product) term for each case where output = 1.
– Combine the terms in SOP form.
– Simplify the output expression if possible.
– Implement the circuit for the final, simplified expression.

Circuit that
produces a 1
output only for
the A = 0, B = 1
condition.

11 Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-4 Designing Combinational Logic Circuits 3-4 Designing Combinational Logic Circuits

Each set of input conditions that is to produce a Truth table for a 3-input circuit.
1 output is implemented by a separate AND gate.
The AND outputs are ORed to produce the final output.
AND terms for each
case where output is 1.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-4 Designing Combinational Logic Circuits 3-4 Designing Combinational Logic Circuits

Design a logic circuit with three inputs, A, B, and C. Design a logic circuit with three inputs, A, B, and C.
Output to be HIGH only when a majority inputs are HIGH. Output to be HIGH only when a majority inputs are HIGH.
Simplified output expression:
AND terms for each
Truth table. case where output is 1.

Implementing the
circuit after factoring:

SOP expression for the output:

Since the expression is in SOP form, the circuit is a


group of AND gates, working into a single OR gate,

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

Problems Problems

17 18

Problems

Problems

19 20
12/17/2022

3-5 Karnaugh Map Method 3-5 Karnaugh Map Method

• A graphical method of simplifying logic equations Four-variable K-Map.


or truth tables—also called a K map.
• Theoretically can be used for any number of input
variables—practically limited to 5 or 6 variables.

The truth table values are placed in the K map.


Shown here is a two-variable map.

Adjacent K map square differ in only one


variable both horizontally and vertically.
A SOP expression can be obtained by
ORing all squares that contain a 1.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-5 Karnaugh Map Method 3-5 Karnaugh Map Method

Five-variable K-Map.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-5 Karnaugh Map Method 3-5 Karnaugh Map Method

Six-variable K-Map. Seven-variable K-Map.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-5 Karnaugh Map Method 3-5 Karnaugh Map Method

Eight-variable K-Map. • When the largest possible groups have been


looped, only the common terms are placed
in the final expression.
– Looping may also be wrapped between top, bottom,
and sides.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-5 Karnaugh Map Method 3-5 Karnaugh Map Method

• Looping • Looping Groups of Two (Pairs)


The expression for output X can be simplified by
properly combining those squares in the K map that
contain 1s. The process for combining these 1s is
called looping.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-5 Karnaugh Map Method 3-5 Karnaugh Map Method

• Looping Groups of Four (Quads) • Looping Groups of Eight (Octets)

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-5 Karnaugh Map Method Problems


• Complete K map simplification process:
– Construct the K map, place 1s as indicated in the truth table.
– Loop 1s that are not adjacent to any other 1s.
– Loop 1s that are in pairs.
– Loop 1s in octets even if they have already been looped.
– Loop quads that have one or more 1s not already looped.
– Loop any pairs necessary to include 1st not already looped.
– Form the OR sum of terms generated by each loop.

When a variable appears in both complemented and


uncomplemented form within a loop, that variable
is eliminated from the expression.

Variables that are the same for all squares of


the loop must appear in the final expression.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. 34
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

Problems Problems

35 36
12/17/2022

3-6 Exclusive OR and Exclusive NOR Circuits

• The exclusive OR (XOR) produces a HIGH


Problems output whenever the two inputs are at
opposite levels.

37 Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-6 Exclusive OR and Exclusive NOR Circuits 3-6 Exclusive OR and Exclusive NOR Circuits

Exclusive OR circuit and truth table. Traditional XOR gate symbol.

An XOR gate has only two inputs, combined so that x = AB + AB.


A shorthand way indicate the XOR output expression is: x = A B.
…where the symbol represents the XOR gate operation.
Output is HIGH only when the two inputs are at different levels.

Output expression: x = AB + AB Quad XOR chips containing four XOR gates.


74LS86 Quad XOR (TTL family)
This circuit produces a HIGH output whenever
74C86 Quad XOR (CMOS family)
the two inputs are at opposite levels. 74HC86 Quad XOR (high-speed CMOS)

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-6 Exclusive OR and Exclusive NOR Circuits 3-6 Exclusive OR and Exclusive NOR Circuits

• The exclusive NOR (XNOR) produces a HIGH Exclusive NOR circuit and truth table.
output whenever the two inputs are at the
same level.
– XOR and XNOR outputs are opposite.

Output expression: x = AB + AB
XNOR produces a HIGH output whenever
the two inputs are at the same levels.
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-6 Exclusive OR and Exclusive NOR Circuits 3-6 Exclusive OR and Exclusive NOR Circuits

Traditional XNOR gate symbol.

Truth table and circuit


for detecting equality of
An XNOR gate has only two inputs, combined so that x = AB + AB.
two-bit binary numbers.
A shorthand way indicate the XOR output expression is: x = A B.
XNOR represents inverse of the XOR operation.
Output is HIGH only when the two inputs are at the same level.

Quad XNOR chips with four XNOR gates.


74LS266 Quad XNOR (TTL family)
74C266 Quad XNOR (CMOS)
74HC266 Quad XNOR (high-speed CMOS)

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

Problems

Problems

45 46

Problems

Problems

47 48
12/17/2022

3-7 Parity generator and checker 3-7 Parity generator and checker

The figure is one type of logic circuitry that is used


for parity generation and parity checking. This
particular example uses a group of four bits as the
data to be transmitted, and it uses an even parity bit.
It can be readily adapted to use odd parity and any
number of bits.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-8 Enable/Disable Circuits

Problems • Situations requiring enable/disable circuits occur


frequently in digital circuit design.
– A circuit is enabled when it allows the passage
of an input signal to the output.
– A circuit is disabled when it prevents the passage
of an input signal to the output.

51 Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-8 Enable/Disable Circuits 3-8 Enable/Disable Circuits

A logic circuit that will allow a signal to pass to output


only when control inputs B and C are both HIGH.
Otherwise, output will stay LOW.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-8 Enable/Disable Circuits 3-8 Enable/Disable Circuits

A logic circuit that will allow a signal to pass to output A logic circuit with input signal A, control
only when one, but not both control inputs are HIGH. input B, and outputs X and Y, which operates as:
Otherwise, output will stay HIGH. When B = 1, output X will follow input A, and output Y will be 0.
When B = 0, output X will be 0, and output Y will follow input A.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-9 Basic Characteristics of Digital ICs 3-9 Basic Characteristics of Digital ICs

• IC “chips” consist of resistors, diodes & transistors • The dual-in-line package (DIP) contains two
fabricated on a piece of semiconductor material parallel rows of pins.
called a substrate.
Digital ICs are often categorized by complexity,
according to the number of logic gates on the substrate.

The DIP is probably the


most common digital IC
package found in older
digital equipment.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-9 Basic Characteristics of Digital ICs 3-9 Basic Characteristics of Digital ICs

• Pins are numbered counterclockwise, viewed • The actual silicon chip is much smaller than the
from the top of the package, with respect to DIP—typically about 0.05” square.
an identifying notch or dot at one end.

The silicon chip is


connected to the pins
Shown is a 14-pin DIP of the DIP by very fine
that measures .75” x .25”. (1- mil) wires.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-9 Basic Characteristics of Digital ICs 3-9 Basic Characteristics of Digital ICs

• The PLCC is one of many packages common • ICs are also categorized by the type of
in modern digital circuits. components used in their circuits.
– This type uses J-shaped leads which curl – Bipolar ICs use NPN and PNP transistors
under the IC. – Unipolar ICs use FET transistors.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-9 Basic Characteristics of Digital ICs 3-9 Basic Characteristics of Digital ICs

The Complimentary Metal-Oxide Semiconductor


The transistor-transistor logic (TTL) family (CMOS) family consists of several series
consists of subfamilies shown here:

Differences between the TTL devices is limited to electrical


characteristics such as power dissipation & switching speed.
Pin layout and logic operations are the same.
CMOS devices perform the same function as, but are not
necessarily pin for pin compatible with TTL devices.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-9 Basic Characteristics of Digital ICs 3-9 Basic Characteristics of Digital ICs

• Inputs not connected are said to be floating. Voltages in the indeterminate range provide
– Floating TTL input acts like a logic 1. unpredictable results and should be avoided.
• Voltage measurement may appear indeterminate,
but the device behaves as if there is a 1 on the
floating input
– Floating CMOS inputs can cause overheating and
damage to the device.
• Some ICs have protection circuits built in.
– The best practice is to tie all unused inputs.
• Either high or low.

Logic levels for TTL and CMOS devices.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-9 Basic Characteristics of Digital ICs 3-9 Basic Characteristics of Digital ICs

A connection diagram shows all electrical


connections, pin numbers, IC numbers, component
values, signal names, and power supply voltages. Logic diagram using Quartus II schematic capture.

This circuit uses logic gates


from two different ICs.

Each gate input & output pin


number is indicated on the
diagram, to easily reference
any point in the circuit.

Power/ ground connections


to each IC are shown.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

Problems

Problems

69 70

3-10 Troubleshooting Digital Systems

• Three basic steps in fixing a digital circuit or


Problems system that has a fault (failure):
– Fault detection—determine operation to expected
operation.
– Fault isolation—test & measure to isolate the fault.
– Fault correction—repair the fault.
• The basic troubleshooting tools are the logic
probe, oscilloscope, and logic pulser.

71 Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-10 Troubleshooting Digital Systems 3-10 Internal Digital IC Faults

• Most common internal failures:


The logic probe will indicate the presence or absence – Malfunction in the internal circuitry.
of a signal when touched to a pin as indicated below. • Outputs do not respond properly to inputs.
• Outputs are unpredictable.
– Inputs or outputs shorted to ground or VCC .
• The input will be stuck in LOW or HIGH state.
– Inputs or outputs open-circuited .
• An open output will result in a floating indication.
• Floating input in a TTL will result in a HIGH output.
• Floating input in a CMOS device will result
in erratic or possibly destructive output.
– Short between two pins (other than ground or VCC).
• The signal at those pins will always be identical.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-10 Internal Digital IC Faults 3-10 Internal Digital IC Faults

These two types of failures force the input signal These two types of failures do
at the shorted pin to stay in the same state. not affect signals at the IC inputs.
Left—IC input internally shorted to ground. Left—IC output internally shorted to ground.
Right—IC input internally shorted to supply voltage. Right—IC output internally shorted to supply voltage.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-10 Internal Digital IC Faults 3-10 Internal Digital IC Faults

An IC with an internally open input will not An internal short between two pins of an IC will force
respond to signals applied to that input pin. the logic signals at those pins always to be identical.

An internally open output will produce an When two input pins are internally shorted, the signals
unpredictable voltage at that output pin.
driving these pins are forced to be identical, and usually
a signal with three distinct levels results.
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-11 External Faults 3-11 External Faults

• Open signal lines—signal prevented from moving What is the most probable fault in the circuit shown?
between points—can be caused by:
– Broken wire.
– Poor connections (solder or wire-wrap).
– Cut or crack on PC board trace.
– Bent or broken IC pins.
– Faulty IC socket.
• This type of fault can be detected visually and
verified with an ohmmeter between the points The indeterminate level at the NOR gate output is
probably due to the indeterminate input at pin 2.
in question.
Because there is a LOW at Z1-6,
this LOW should also be at Z2-2.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-11 External Faults 3-11 External Faults

• Shorted signal lines—the same signal appears • Faulty power supply—ICs will not operate or will
on two or more pins—and VCC or ground may operate erratically.
also be shorted, caused by: – May lose regulation due to an internal fault or
– Sloppy wiring. because circuits are drawing too much current.
– Solder bridges.
• Verify that power supplies provide the specified
– Incomplete etching.
range of voltages and are properly grounded.
• This type of fault can be detected visually and – Use an oscilloscope to verify that AC ripple is not
verified with an ohmmeter between the points present and verify that DC voltages stay regulated.
in question. • Some ICs are more tolerant of power variations
and may operate properly—others do not.
– Check power and ground levels at each IC that
appears to be operating incorrectly.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-11 External Faults 3-12 Programmable Logic Devices

• Output loading—caused by connecting too many • The concept behind programmable logic devices
inputs to the output of an IC, exceeding output is simple—lots of logic gates in a single IC.
current rating. – Control of the interconnection of these gates
– Output voltage falls into the indeterminate range. electronically.
• Called loading the output signal. • PLDs allow the design process to be automated.
– Usually a result of poor design or bad connection. – Designers identify inputs, outputs, and logical
relationships.
• PLDs are electronically configured to form the
defined logic circuits.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-12 Programmable Logic Devices 3-12 Programmable Logic Devices

PLDs use a switch matrix that is often • For out-of-system programming the PLD is placed
referred to as a programmable array. in a programmer, connected to a PC.
– PC software translates and loads the information.

By deciding which
intersections are
connected & which are
not, we can “program”
the way the inputs are
connected to the outputs
of the array.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-12 Programmable Logic Devices 3-12 Programmable Logic Devices

• In-system programming is done by connecting • Logic circuits can be described using schematic
directly to “portal” pins while the IC remains in diagrams, logic equations, truth tables, and HDL.
the system. – PLD development software can convert any of these
– An interface cable connects the PLD to a PC descriptions into 1s and 0s and loaded into the PLD.
running the software that loads the device. • Altera MAX+PLUS II is a development software
that allows the user to describe circuits using
graphic design files and timing diagrams.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
12/17/2022

3-12 Programmable Logic Devices 3-12 Programmable Logic Devices

• Hierarchical design—small logic circuits are • Top-down design—requires the definition of


defined and combined with other circuits to form a subsections that will make up the system.
large section of a project. – And definition of the individual circuits that will
– Large sections can be combined and connected for make up each sub section.
form a system. • Each level can be designed and tested individually.

Combining blocks
developed using
different description
methods.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

3-12 Programmable Logic Devices 3-12 Programmable Logic Devices

A system is built from


that bottom up.

Each block is described


Timing simulation of a circuit described in HDL. by a design file.

After testing it is compiled


using development software.

The compiled block is tested


using a simulator for verify
correct operation.

A PLD is programmed to
verify correct operation.

Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved

You might also like