Anda di halaman 1dari 18

dce dce

2016 2016

Introduction
Basic logic gate functions will be combined in
combinational logic circuits.
Simplification of logic circuits will be done using
Chapter 3: Combinational Circuits Boolean algebra and a mapping technique.
Troubleshooting of combinational circuits will be
introduced.
Tran Ngoc Thinh
BK
TP.HCM
HCMC University of Technology
http://www.cse.hcmut.edu.vn/~tnthinh

dce dce
2016
Sum-of-Products & Product-of-sums Forms
2016

Simplifying Logic Circuits


A Sum-of-products (SOP) expression will The circuits below both provide the same output,
appear as two or more AND terms ORed but the lower one is clearly less complex.
together.
ABC AB C
AB AB C C D D

A Product-of-sums(POS) expression is
sometimes used in logic design.
We will study simplifying logic circuits using
Boolean algebra and Karnaugh mapping
( A B C )( A B C )
3 4

Digital Systems, Chapter 3 1


dce dce
2016

Algebraic Simplification 2016

Designing Combinational Logic Circuits


Place the expression in SOP form by To solve any logic design problem:
applying DeMorgans theorems and
Interpret the problem and set up its truth table.
multiplying terms.
Check the SOP form for common factors Write the AND (product) term for each case
and perform factoring where possible. where the output equals 1.

Note that this process may involve some Combine the terms in SOP form.
trial and error to obtain the simplest result. Simplify the output expression if possible.

Implement the circuit for the final, simplified


expression.

5 6

Example of Logic Design Example of Logic Design


A B C X
Design a logic circuit that has three inputs,
A, B, and C, whose output will be HIGH only 0 0 0 0
when a majority of the inputs are HIGH. 0 0 1 0
0 1 0 0
0 1 1 1
X = ABC + ABC + ABC + ABC 1 0 0 0
1 0 1 1
X = ABC + ABC + ABC + ABC + ABC + ABC
1 1 0 1
X = BC (A+ A) + AC(B+ B) + AB(C + C) 1 1 1 1

X = BC + AC + AB

7 8

Digital Systems, Chapter 3 2


dce dce
2016

Karnaugh Map Method 2016

Karnaugh Map Method


A graphical method of simplifying logic The truth table values are placed in the
equations or truth tables. Also called a K K map.
map. Adjacent K map square differ in only
Theoretically can be used for any number one variable both horizontally and
of input variables, but practically limited to vertically.
5 or 6 variables. The pattern from top to bottom and left
to right must be in the form AB, AB, AB, AB
A SOP expression can be obtained by
ORing all squares that contain a 1.

9 10

dce dce
2016

Karnaugh Map Method 2016

Karnaugh Map for 2, 3 variables


Looping adjacent groups of 2, 4, or 8 1s Looping adjacent groups of 2, 4, or 8 1s will result in
further simplification.
will result in further simplification.
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.

11 12

Digital Systems, Chapter 3 3


dce dce
2016

Karnaugh Map for 4 variables 2016

Minimization Technique
Looping adjacent groups of 2, 4, or 8 1s will result in Minimization is done by spotting patterns of 1's and 0's
further simplification. Simple theorems are then used to simplify the Boolean
description of the patterns
Pairs of adjacent 1's
remember that adjacent squares differ by only one variable
hence the combination of 2 adjacent squares has the form

P ( A + A )
this can be simplified (from before) to just P

13 14

dce
2016
dce
2016

Example of pairs of adjacent of 1s Example of grouping of fours 1s (quads)

15 16

Digital Systems, Chapter 3 4


dce dce
2016

Example of grouping of eight 1s (octals)


2016

Complete Simplification Process


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.

17 18

dce dce
2016
Example 2016
Example

19 20

Digital Systems, Chapter 3 5


dce dce
2016
Example 2016
Example
Use a K map to simplify: Use a K map to simplify:
Y = C(ABD + D) + ABC + D

21 22

dce dce
2016
Dont Care Conditions 2016
Example
In certain cases some of the minterms may never occur
or it may not matter what happens if they do Use a K map to simplify:
In such cases we fill in the Karnaugh map with X

meaning don't care
When minimizing an X is like a "joker" 1 0 1 1
1 1 1 1
X can be 0 or 1 - whatever helps best with the minimization 1 0 0 1
Dont care conditions should be changed to either 0 or a. 1 1 0 0
b. 0 0 0 0
0 0 0 1
1 to produce K-map looping that yields the simplest 1 0 1 1
0 0 1 1
expression.


1 1
0 1 X 0
0 0 1 1 0 X
c. 1 0 d. X 0 1 1
1 x 0 X 1 0

23

Digital Systems, Chapter 3 6


dce dce
2016
Terminology: Minterms 2016
Terminology: Sum of minterms form
A minterm is a special product of literals, in which each input Every function can be written as a sum of minterms, which is a
variable appears exactly once. special kind of sum of products form
A function with n variables has 2n minterms (since each variable can The sum of minterms form for any function is unique
appear complemented or not)
If you have a truth table for a function, you can write a sum of
A three-variable function, such as f(x,y,z), has 23 = 8 minterms: minterms expression just by picking out the rows of the table where
xyz xyz xyz xyz the function output is 1.
xyz xyz xyz xyz
f = xyz + xyz + xyz + xyz + xyz
Each minterm is true for exactly one combination of inputs: x y z f(x,y,z) f(x,y,z) = m0 + m1 + m2 + m3 + m6
0 0 0 1 0 = m(0,1,2,3,6)
Minterm Is true when Shorthand 0 0 1 1 0
xyz x=0, y=0, z=0 m0 0 1 0 1 0 f = xyz + xyz + xyz
xyz x=0, y=0, z=1 m1 0 1 1 1 0 = m4 + m5 + m7
xyz x=0, y=1, z=0 m2 1 0 0 0 1 = m(4,5,7)
xyz x=0, y=1, z=1 m3
1 0 1 0 1
xyz x=1, y=0, z=0 m4 f contains all the minterms not in f
1 1 0 1 0
xyz x=1, y=0, z=1 m5
1 1 1 0 1
xyz x=1, y=1, z=0 m6
xyz x=1, y=1, z=1 m7
25 26

dce dce
2016
Minterms and Maxterms & Binary representations 2016
SOP-POS Conversion
A B C Min- Max- Minterm values present in SOP expression
terms terms not present in corresponding POS
0 0 0 A BC
A .B.C expression
0 0 1 A BC
A .B.C
Maxterm values present in POS
0 1 0 A .B.C A BC
expression not present in corresponding
0 1 1 A .B.C A BC

1 0 0
SOP expression
A .B.C A BC

1 0 1 A .B.C A BC

1 1 0 A .B.C A BC

1 1 1 A .B.C A BC

27 28

Digital Systems, Chapter 3 7


dce dce
2016
SOP-POS Conversion 2016
Boolean Expressions and Truth Tables

Canonical Sum A ,B,C (0,2,3,5,7) Standard SOP & POS expressions


converted to truth table form
A BC ABC ABC A BC ABC Standard SOP & POS expressions
Canonical Product determined from truth table
A ,B ,C (1,4,6)

(A B C)( A B C)( A B C)

A ,B,C (0,2,3,5,7) = A ,B,C (1,4,6)

29 30

SOP-Truth Table Conversion POS-Truth Table Conversion


AB BC ( A B)(B C) A ,B,C (1,2,3,5)
A ,B,C (3,4,5,7) ABC ABC ABC ABC ( A B C)( A B C)( A B C)( A B C)
Input Output Input Output
A B C F A B C F
0 0 0 0 0 0 0 1
0 0 1 0 0 0 1 0
0 1 0 0 0 1 0 0
0 1 1 1 0 1 1 0
1 0 0 1 1 0 0 1
1 0 1 1 1 0 1 0
1 1 0 0 1 1 0 1
1 1 1 1 1 1 1 1

Digital Systems, Chapter 3 8


dce
2016
dce
2016
Simplification of POS expressions using K-map Simplification of POS expressions using K-map

Mapping of expression
Forming of Groups of 0s
( A B).(B C)
Each group represents sum term
0 1
AB\C
A\BC 00 01 11 10
00 0 0
0 0 0 1 1
01 1 1
1 1 1 1 0
11 1 1

10 0 1 ( A B).( A B C)

dce dce
2016
Simplification of POS expressions using K-map 2016
Example 1
Use a K map to simplify (all possible
cases)
( A C).(C D).(B C D) 1. F(A,B,C) = (1, 2, 3, 4, 6, 7)
2. F(A,B,C,D) = (1, 3, 4, 5, 6, 7, 12, 13)
AB\CD 00 01 11 10
3. F(A,B,C,D) = (2, 5, 7, 8, 10, 12, 13, 15)
00 0 0 1 0 4. F(A,B,C,D) = (0, 6, 8, 9, 10, 11, 13, 14, 15)
5. F(A,B,C,D) = (0, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15)
01 0 0 1 1 6. F(D,C,B,A) = (0, 2, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15)
7. F(D,C,B,A) = 0, 1, 4, 5, 7, 8, 10, 13, 14, 15
11 1 0 1 1
8. F(D,C,B,A) =
10 1 0 1 0 1, 2, 5, 10, 12 + (0, 3, 4, 8, 13, 14, 15)

Digital Systems, Chapter 3 9


dce dce
2016
Example 2 2016
Example
Use a K map to simplify (all possible Lets design a logic circuit that controls an elevator door
in a three-story building.
cases) The circuit has four inputs.
1. F(A,B,C,D) = 0, 1, 2, 5, 7, 8, 10, 14, 15 + (3, 13) M is a logic signal that indicates when the elevator is moving (M=
2. F(A,B,C,D) = 1, 3, 4, 5, 11, 12, 14, 15 . (0,6,7,8) 1) or stopped (M = 0).
F1,F2, and F3 are floor indicator signals that are normally LOW,
3. F(A,B,C,D) = 1, 3, 6, 8, 11, 14 + (2, 4, 5, 13, 15)
and they go HIGH only when the elevator is positioned at the
4. F(A,B,C,D) = 1, 5, 6, 7, 9, 11, 15 . (0, 2, 3, 8, 14) level of that particular floor.
5. F(D,C,B,A) = 0,3,6,9,11,13,14 . (5,7,10,12) For example, when the elevator is lined up level with the second
6. F(D,C,B,A) = floor, F2 = 1 and F1 = F3 = 0. The circuit output is the OPEN
0, 1, 4, 6, 10, 14 + (5, 7, 8, 9, 11, 12, 15) signal, which is normally LOW and will go HIGH when the
elevator door is to be opened.
7. F(E,D,C,B,A) =
1, 3, 10, 14, 21, 26, 28, 30 + (5, 12, 17, 29)
8. F(A,B,C,D) = 0, 2, 3, 4, 7, 8
38

dce dce
2016
Example 2016
Example

39 40

Digital Systems, Chapter 3 10


dce dce
2016
Assignment 2016
K Map Method Summary
Use a Karnaugh map to reduce each expression to a Compared to the algebraic method, the K-map process
minimum SOP form: is a more orderly process requiring fewer steps and
a) X = A+ BC + CD always producing a minimum expression.
b) X = A B C D + A B C D + A B C D + A B C D The minimum expression in generally is NOT unique.
c) X = A B(C D + C D) + AB(C D + CD) + A B C D For the circuits with large numbers of inputs (larger than
d) X = (A B + A B)(CD + C D) four), other more complex techniques are used.
e) X = A B + A B + C D + C D

F) f2(A, B, C, D) = m(0, 1, 3, 4, 8, 11)


g) f (w, x, y, z) = m (1,3,4,7,11) + d(5, 12, 13, 14, 15)

41 42

dce dce
2016
Summary 2016
Example
The following function is in minimum sum of products
SOP and POS useful forms of Boolean equations form. Implement it using only two-input NAND gates.
Design of a comb. Logic circuit No gate may be used as a NOT gate.
(1) construct its truth table, (2) convert it to a SOP, (3) f = w' y' z + x y' + w y z + x' y z'
simplify using Boolean algebra or K mapping, (4)
= y' (w' z + x) + y (w z + x' z')
implement
K map: a graphical method for representing a
circuits truth table and generating a simplified
expression
Dont cares entries in K map can take on values of
1 or 0. Therefore can be exploited to help
simplification

43 44

Digital Systems, Chapter 3 11


dce dce
2016
Assignment 2016
Exclusive-OR
The following function is in minimum sum of products The exclusive OR (XOR) produces a HIGH output
form. Implement it using only two-input NAND gates. whenever the two inputs are at opposite levels.
No gate may be used as a NOT gate.
G = A B C E' + A' B' E' + B' C' E + A' B C E + A D'

45 46

dce dce
2016
Exclusive-NOR 2016

Parity Generator and Checker


The exclusive NOR (XNOR) produces a HIGH output XOR and XNOR gates are useful in circuits for
whenever the two inputs are at the same level. parity generation and checking.
XOR and XNOR outputs are opposite.

47 48

Digital Systems, Chapter 3 12


dce dce
2016

Enable/Disable Circuits 2016

Enable/Disable Circuits
A circuit is enabled when it allows the AND gate function act as enable/disable
passage of an input signal to the output. circuits
A circuit is disabled when it prevents the
passage of an input signal to the output.
Situations requiring enable/disable
circuits occur frequently in digital circuit
design.

49 50

dce dce
2016

Enable/Disable Circuits 2016

Merging & Inversion Circuits


Design a logic circuit that will allow a signal to pass OR gate performs signal merging function
to the output only when control inputs B and C are
both HIGH; otherwise, the output will stay LOW.

Design a logic circuit that will allow a signal to pass XOR gate performs selectable inversion function
to the output only when one, but not both, of the
control inputs are HIGH; otherwise, the output will
stay HIGH.

51 52

Digital Systems, Chapter 3 13


dce
2016
dce
2016

Basic Characteristics of Digital ICs Basic Characteristics of Digital ICs


IC chips consist of resistors, diodes, and The first package we will examine is the dual in
transistors fabricated on a piece of semiconductor line package (DIP).
material called a substrate.
Digital ICs may be categorized according to the
number of logic gates on the substrate:
SSI less than 12
MSI 12 to 99
LSI 100 to 9999
VLSI 10,000 to 99,999
ULSI 100,000 to 999,999
GSI 1,000,000 or more

53 54

dce
2016
dce
2016

Basic Characteristics of Digital ICs Basic Characteristics of Digital ICs


ICs are also categorized by the type of components
used in their circuits. The TTL family consists of subfamilies as
Bipolar ICs use NPN and PNP transistors listed in the table.
Unipolar ICs use FET transistors.
The transistor-transistor logic (TTL) and the
complementary metal-oxide semiconductor (CMOS)
families will both be examined.

55 56

Digital Systems, Chapter 3 14


dce
2016
dce
2016

Basic Characteristics of Digital ICs Basic Characteristics of Digital ICs


The CMOS family consists of several series, Power (referred to as VCC) and ground connections are
some of which are shown in the table. required for chip operation.
VCC for TTL devices is normally +5 V.
VDD for CMOS devices can be from +3 to +18 V.

57 58

dce
2016
dce
2016

Basic Characteristics of Digital ICs Troubleshooting Digital Systems


Inputs that are not connected are said to be 3 basic steps
floating. The consequences of floating inputs Fault detection, determine operation to expected
differ for TTL and CMOS. operation.
Floating TTL input acts like a logic 1. The voltage Fault isolation, test and measure to isolate the fault.
measurement may appear in the indeterminate Fault correction, repair the fault.
range, but the device will behave as if there is a 1 on
the floating input.
Good troubleshooting skills come through
experience in actual hands-on troubleshooting.
Floating CMOS inputs can cause overheating and
damage to the device. Some ICs have protection The basic troubleshooting tools used here will
circuits built in, but the best practice is to tie all be: the logic probe, oscilloscope, and logic
unused inputs either high or low. pulser.
The most important tool is the technicians brain.

59 60

Digital Systems, Chapter 3 15


dce dce
2016

Troubleshooting Digital Systems


2016

Internal Digital IC Faults


The logic probe will indicate the presence or Most common internal failures:
absence of a signal when touched to a pin Malfunction in the internal circuitry.
as indicated below.
Inputs or outputs shorted to ground or VCC
Inputs or outputs open-circuited
Short between two pins (other than ground
or VCC)

61 62

dce dce
2016

Internal Digital IC Faults 2016

External Faults
Malfunction in internal circuitry Open signal lines signal is prevented from
Outputs do not respond properly to inputs. Outputs are moving between points. Some causes:
unpredictable.
Input internally shorted to ground or supply Broken wire
The input will be stuck in LOW or HIGH state. Poor connections (solder or wire-wrap)
Output internally shorted to ground or supply Cut or crack on PC board trace
Output will be stuck in LOW or HIGH state. Bent or broken IC pins.
Open-circuited input or output Faulty IC socket
Floating input in a TTL device will result in a HIGH output.
Floating input in a CMOS device will result in erratic or Detect visually and verify with an ohmmeter.
possibly destructive output.
An open output will result in a floating indication.
Short between two pins
The signal at those pins will always be identical.

63 64

Digital Systems, Chapter 3 16


dce
2016
dce
2016

External Faults External Faults


Shorted signal lines the same signal will Faulty power supply ICs will not operate or
appear on two or more pins. VCC or ground will operate erratically.
may also be shorted. Some causes: May lose regulation due to an internal fault or
Sloppy wiring because circuits are drawing too much current.
Solder bridges Always verify that power supplies are providing the
Incomplete etching specified range of voltages and are properly
Detect visually and verify with an ohmmeter. grounded.
Use an oscilloscope to verify that AC signals are not
present.

65 66

dce dce
2016

External Faults
2016

Programmable Logic Devices


PLDs allow the design process to be automated.
Output loading caused by connecting too Designers identify inputs, outputs, and logical relationships.
many inputs to the output of an IC.
PLDs are electronically configured to form the defined logic
Causes output voltage to fall into the indeterminate circuits.
range.
This is called loading the output.
Usually a result of poor design or bad connection.

67 68

Digital Systems, Chapter 3 17


dce dce
2016

Programmable Logic Devices 2016

Programmable Logic Devices


PLD ICs can be programmed out of system or Hierarchical design small logic circuits are
in system. defined and combined with other circuits to form
Logic circuits can be described using schematic a large section of a project. Large sections can
diagrams, logic equations, truth tables, and be combined and connected for form a system.
HDL. Top-down design requires the definition of sub
PLD development software can convert any of sections that will make up the system, and
these descriptions into 1s and 0s and loaded definition of the individual circuits that will make
into the PLD. up each sub section.
Each level of the hierarchy can be designed
and tested individually.

69 70

dce
2016

Programmable Logic Devices


A system is built from the bottom up.
Each block is described by a design file.
The designed block is tested
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.

71

Digital Systems, Chapter 3 18

Anda mungkin juga menyukai