Documente Academic
Documente Profesional
Documente Cultură
Introduction
Basic logic gate functions will be combined in
combinational logic circuits.
Chapter 4 Simplification of logic circuits will be done using
Boolean algebra and a mapping technique.
technique
ABC + ABC
AB + ABC + C D + D
We will study simplifying logic circuits using
Boolean algebra and Karnaugh mapping
Ronald Tocci/Neal Widmer/Gregory Ronald Tocci/Neal Widmer/Gregory
Moss Copyright ©2007 by Pearson Education, Inc. Moss Copyright ©2007 by Pearson Education, Inc.
Digital Systems: Principles and Columbus, OH 43235 Digital Systems: Principles and Columbus, OH 43235
Applications, 10e All rights reserved.. Applications, 10e All rights reserved..
1
25-10-2010
Ex. Simplify the logic circuit 4-4 Designing Combinational Logic Circuits
To solve any logic design problem:
Interpret the problem and set up its truth table.
Write the AND (product) term for each case where the
output
p equals
q 1.
Combine the terms in SOP form.
Simplify the output expression if possible.
Implement the circuit for the final, simplified
expression.
4-4 Designing Combinational Logic Circuits 4-4 Designing Combinational Logic Circuits
Example (4-8) Example (4-8)
A digital circuit is monitoring a 12 V battery using the output of an 1. Truth table 2. Product (AND) 3. Combine the
analog digital-converter. The ADC output is a binary number with terms terms in SOP form
4 bits: ABCD, corresponding to the battery potential in steps of 1V, z = ABCD + A BCD
where A is the MSB. The ADC output is fed to a digital circuit that
must give an active high (1) output whenever the electric potential + A BCD + A BCD
is bigger than 6V (610=01102). Project the digital circuit. + A BCD + ABCD
+ ABCD + ABCD
+ ABCD
4. Simplify the output
expression
z = BCD + A
Ronald Tocci/Neal Widmer/Gregory
Moss
Digital Systems: Principles and
Copyright ©2004 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458
5. Implement the digital
Applications, 9e All rights reserved.
circuit
2
25-10-2010
4-5 Karnaugh
4-5 Karnaugh Map Method Map Method
The truth table values are placed in the K
map.
Adjacent
j K mapp square
q differ in onlyy one
variable both horizontally and vertically.
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.
Ronald Tocci/Neal Widmer/Gregory Ronald Tocci/Neal Widmer/Gregory
Moss Copyright ©2007 by Pearson Education, Inc. Moss
Digital Systems: Principles and Columbus, OH 43235 Digital Systems: Principles and
Applications, 10e All rights reserved.. Applications, 10e
3
25-10-2010
4
25-10-2010
4-6 Exclusive OR (XOR) truth-table and circuit 4-6 Exclusive NOR (XNOR) truth-table and
symbols circuit symbols
5
25-10-2010
4-9 Basic Characteristics of Digital ICs 4-9 Basic Characteristics of Digital ICs
Dual in Line Package (DIP). PLDs have a different numbering
Pins are numbered counter-clock
wise from the identification
mark
6
25-10-2010
CMOS devices perform the same function as, but are not
necessarily pin for pin compatible with TTL devices. Ronald Tocci/Neal Widmer/Gregory
Moss Copyright ©2007 by Pearson Education, Inc.
Digital Systems: Principles and Columbus, OH 43235
Applications, 10e All rights reserved..
4-9 Basic Characteristics of Digital ICs 4-9 Basic Characteristics of Digital ICs
Voltages that fall in the indeterminate range will Inputs that are not connected are said to be floating.
provide unpredictable results and should be avoided. The consequences of floating inputs differ for TTL
and CMOS.
Floating TTL input acts like a logic 1. The voltage
measurement may appear in the indeterminate range, but
the device will behave 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,
but the best practice is to tie all unused inputs either high
or low.
Ronald Tocci/Neal Widmer/Gregory Ronald Tocci/Neal Widmer/Gregory
Moss Copyright ©2007 by Pearson Education, Inc. Moss Copyright ©2007 by Pearson Education, Inc.
Digital Systems: Principles and Columbus, OH 43235 Digital Systems: Principles and Columbus, OH 43235
Applications, 10e All rights reserved.. Applications, 10e All rights reserved..
7
25-10-2010
Short between two pins (other than ground or Open-circuited input or output
Floating input in a TTL device will result in a HIGH output. Floating
VCC) input in a CMOS device will result in erratic or 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.
Ronald Tocci/Neal Widmer/Gregory Ronald Tocci/Neal Widmer/Gregory
Moss Copyright ©2007 by Pearson Education, Inc. Moss Copyright ©2007 by Pearson Education, Inc.
Digital Systems: Principles and Columbus, OH 43235 Digital Systems: Principles and Columbus, OH 43235
Applications, 10e All rights reserved.. Applications, 10e All rights reserved..
8
25-10-2010
9
25-10-2010
4-16 Truth Tables Using HDL 4-17 Decision Control Structures in HDL
Circuits can be designed directly from truth tables in IF/THEN/ELSE statements provide a framework for
HDL. making logical decisions in a system.
Figures 4-50 and 4-51 describe the syntax for AHDL IF/THEN is used when there is a choice between doing
and VHDL truth tables respectively
respectively. something and doing nothing.
nothing
IF/THEN/ELSE is used when there is a choice between
two possible actions.
10
25-10-2010
4-17 Decision Control Structures in HDL 4-17 Decision Control Structures in HDL
The IF/THEN/ELSE in AHDL: The IF/THEN/ELSE in VHDL:
4-17 Decision Control Structures in HDL 4-17 Decision Control Structures in HDL
The CASE construct determines the value of an The case construct in AHDL:
expression or object and then goes through a list of
values (cases) to determine what action to take.
This is different than the IF/ELSEIF because there is
only one action or match for a case statement.
11