Anda di halaman 1dari 84

Digital

Fundamentals
Tenth Edition

Floyd

Chapter 4

Floyd, Digital Fundamentals, 10th ed

2008 Pearson
Education
2009 Pearson Education,Upper
Saddle River,
NJ 07458. All Rights Reserved

Introduccin

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Estrucutra

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Mtodo de Karnaugh

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Mtodo de Karnaugh

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Mtodo de Karnaugh

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Adyacencia de celdas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Adyacencia de celdas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Minimizacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Resumn

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Resumn

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Obtencin a partir de la tabla de verdad

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Obtencin a partir de la tabla de verdad

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Obtencin a partir de la tabla de verdad

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Estructura

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Minimizacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Generacin del mapa de producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin del producto de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Obtencin a partir de la tabla de verdad

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Obtencin a partir de la tabla de verdad

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Conversin entre formas estndar

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Estructuras

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Funciones incompletamente especificadas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Indiferencias en la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Indiferencias en la suma de productos

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Indiferencias en productos de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Indiferencias en productos de sumas

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Estructura

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Circuitos con slida mltiple

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Mtodo de Karnaugh para multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Simplificacin de multi-funciones

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Estructura

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Funciones con ms de cuatro variables

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Funciones con ms de cuatro variables

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Estructura

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Resumn

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Karnaugh maps
The Karnaugh map (K-map) is a tool for simplifying
combinational logic with 3 or 4 variables. For 3 variables,
8 cells are required (23).
The map shown is for three variables
labeled A, B, and C. Each cell
represents one possible product
term.
Each cell differs from an adjacent
cell by only one variable.

Floyd, Digital Fundamentals, 10th ed

ABC

ABC

ABC

ABC

ABC

ABC

ABC

ABC

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Karnaugh maps
Cells are usually labeled using 0s and 1s to represent the
variable and its complement.
C
AB

00

Gray
code

01
11

The numbers are entered in gray


code, to force adjacent cells to be
different by only one variable.
Ones are read as the true variable
and zeros are read as the
complemented variable.

10

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Karnaugh maps
Alternatively, cells can be labeled with the variable
letters. This makes it simple to read, but it takes more
time preparing the map.
CC

Read the terms for the


yellow cells.

AB
AB ABC

CC
ABC

AB
AB ABC
ABC ABC

The cells are ABC and ABC.

Floyd, Digital Fundamentals, 10th ed

AB ABC
AB

ABC

AB ABC
AB

ABC
ABC

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Karnaugh maps
K-maps can simplify combinational logic by grouping
cells and eliminating variables that change.
Group the 1s on the map and read the minimum logic.

B changes
across this
boundary

CC
AAB
B
000
0

00

001
1

11

11

11
11

111
1
110
0

C changes
across this
boundary

Floyd, Digital Fundamentals, 10th ed

1. Group the 1s into two overlapping


groups as indicated.
2. Read each group by eliminating any
variable that changes across a
boundary.
3. The vertical group is read AC.
4. The horizontal group is read AB.

X = AC +AB
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Karnaugh maps
A 4-variable map has an adjacent cell on each of its four
boundaries as shown.
CD

CD

AB
AB
AB
AB

Floyd, Digital Fundamentals, 10th ed

CD

CD

Each cell is different only by


one variable from an adjacent
cell.
Grouping follows the rules
given in the text.
The following slide shows an
example of reading a four
variable map using binary
numbers for the variables
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Karnaugh maps
Group the 1s on the map and read the minimum logic.
C changes across
outer boundary

CD
00
AB
00 1

01

11

10
1

B changes

01

B changes

11

10

C changes

X
Floyd, Digital Fundamentals, 10th ed

1. Group the 1s into two separate


groups as indicated.
2. Read each group by eliminating
any variable that changes across a
boundary.
3. The upper (yellow) group is read as
AD.
4. The lower (green) group is read as
AD.

X = AD +AD
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Hardware Description Languages (HDLs)
A Hardware Description Language (HDL) is a tool for
implementing a logic design in a PLD. One important
language is called VHDL. In VHDL, there are three
approaches to describing logic:
1. Structural

Description is like a schematic


(components and block diagrams).

2. Dataflow

Description
Description is
is equations,
equations, such
such as
as
Boolean
Boolean operations,
operations, and
and registers.
registers.

Description is
is specifications
specifications over
over
3. Behavioral Description
time
time (state
(state machines,
machines, etc.).
etc.).
Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Hardware Description Languages (HDLs)
The data flow method for VHDL uses Boolean-type statements. There
are two-parts to a basic data flow program: the entity and the
architecture. The entity portion describes the I/O. The architecture
portion describes the logic. The following example is a VHDL program
showing the two parts. The program is used to detect an invalid BCD
code.
entity BCDInv is
port (B,C,D: in bit; X: out bit);
end entity BCDInv
architecture Invalid of BCDInv
begin
X <= (B or C) and D;
end architecture Invalid;
Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Summary
Hardware Description Languages (HDLs)
Another standard HDL is Verilog. In Verilog, the I/O and the logic is
described in one unit called a module. Verilog uses specific symbols to
stand for the Boolean logical operators.
The following is the same program as in the previous slide, written
for Verilog:

module BCDInv (X, B, C, D);


input B, C, D;
output X;
assign X = (B | C)&D;
endmodule

Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Selected Key Terms


Variable Asymbolusedtorepresentalogicalquantitythat
canhaveavalueof1or0,usuallydesignatedby
anitalicletter.
Complement Theinverseoroppositeofanumber.InBoolean
algebra,theinversefunction,expressedwithabar
overthevariable.
Sumterm TheBooleansumoftwoormoreliterals
equivalenttoanORoperation.
Productterm The Boolean product of two or more literals
equivalent to an AND operation.
Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Selected Key Terms


Sumof A form of Boolean expression that is basically the
products(SOP) ORing of ANDed terms.
Productof AformofBooleanexpressionthatisbasicallythe
sums(POS) ANDingofORedterms.
Karnaughmap Anarrangementofcellsrepresentingcombinations
ofliteralsinaBooleanexpressionandusedfor
systematicsimplificationoftheexpression.
VHDL A standard hardware description language. IEEE
Std. 1076-1993.
Floyd, Digital Fundamentals, 10th ed

2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Anda mungkin juga menyukai