appendix b - reduction of digital logic
TRANSCRIPT
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
ion) of Boolean ns
anonical SOP (or POS) forms.
translates to a lower gate
uction, Karnaugh map ) reduction.
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
nction Circuit r the unreduced majority liminated, one AND gate has
as only two inputs instead of uced further? How do we go
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
B.1 Reduction of Combinational Logic and Sequential Logic B.2 Reduction of Two-Level Expressions B.3 State Reduction
ca and V. Heuring Principles of Computer Architecture by M. Murdocca and V. Heuring
function, the inverter for C has been ebeen eliminated, and one AND gate hthree inputs. Can the function by redabout it?
B-1 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Principles of Computer ArchitecMiles Murdocca and Vincent Heuring
Appendix B: Reduction of DigiLogic
B-2 Appendix B - Reductio
Chapter Contents
n of Digital Logic
ca and V. Heuring
ture
tal
n of Digital Logic
B-3
Principles of Computer Architecture by M. Murdocca and V. Heuring
Reduction (SimplificatExpressio
• It is usually possible to simplify the c
• A smaller Boolean equation generally count in the target circuit.
• We cover three methods: algebraic redreduction, and tabular (Quine-McCluskey
B-4
Reduced Majority Fu• Compared with the AND-OR circuit fo
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
enn Diagram jority Function
represents a minterm.
a Karnaugh Map.
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
y Function ds to that minterm.
ap around”
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
majority circuit, but this one is in its minimal two-level fo
ca and V. Heuring
rm:
Principles of Computer Architecture by M. Murdocca and V. Heuring
• Cells on the outer edge of the map “wr
B-5 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
The Algebraic Method • Consider the majority function, F. We apply the algebrai
to reduce F to its minimal two-level form:
B-6 Appendix B - Reductio
The Algebraic Method • This majority circuit is functionally equivalent to the prev
n of Digital Logic
ca and V. Heuring
c method
n of Digital Logic
ious
B-7
Principles of Computer Architecture by M. Murdocca and V. Heuring
Karnaugh Maps: VRepresentation of Ma
• Each distinct region in the “Universe”
• This diagram can be transformed into
B-8
K-Map for Majorit• Place a “1” in each cell that correspon
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
pings inimal (but logically
allest groups first.
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
gically Adjacent
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
• F = BC + AC + AB
• The K-map approach yields the same minimal two-level the algebraic approach.
ca and V. Heuring
form as
Principles of Computer Architecture by M. Murdocca and V. Heuring
B-9 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Adjacency Groupings for MajorFunction
• F = BC + AC + AB
B-10 Appendix B - Reductio
Minimized AND-OR Majority Cir
n of Digital Logic
ca and V. Heuring
ity
n of Digital Logic
cuit
B-11
Principles of Computer Architecture by M. Murdocca and V. Heuring
K-Map Grou• Minimal grouping is on the left, non-m
equivalent) grouping is on the right.
• To obtain minimal grouping, create sm
B-12
K-Map Corners are Lo
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
on’t Cares
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
key) Reduction
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
AND followed by OR. Inverters are not included in the twcount). Algebraic reduction can result in multi-level circueven fewer logic gates and fewer inputs to the logic gate
ca and V. Heuring
o-level its with s.
Principles of Computer Architecture by M. Murdocca and V. Heuring
• Tabular reduction begins by grouping minterms for which F is nonzero according to the number of 1’s in each minterm. Don’t cares are considered to be nonzero.
• The next step forms a consensus (the logical form of a cross product) between each pair of adjacent groups for all terms that differ in only one variable.
B-13 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
K-Maps and Don’t Cares • There can be more than one minimal grouping, as a res
cares.
B-14 Appendix B - Reductio
3-Level Majority Circuit • K-Kap Reduction results in a reduced two-level circuit (t
n of Digital Logic
ca and V. Heuring
ult of don’t
n of Digital Logic
hat is,
B-15
Principles of Computer Architecture by M. Murdocca and V. Heuring
Truth Table with D
• A truth table representation of a single function with don’t cares.
B-16
Tabular (Quine-McClus
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
of Choice ntial prime implicants and , producing the eligible set.
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
ruth Table into play for multiple hared among the functions.
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
function, although not necessarily minimally.
• A table of choice is used to obtain a minimal cover set.
ca and V. Heuring Principles of Computer Architecture by M. Murdocca and V. Heuring
functions, in which minterms can be s
B-17 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
On considère la fonction = 1 pourles mintermes
Implicantspremier
Mintermes
0000 0001 0011 0101 0110 0111 1010 1011
000‐ √ √
011‐ √ √
101‐ √ √
0‐‐1 √ √ √ √
‐‐11 √ √ √ ‐1‐1 √ √
B-18 Appendix B - Reductio
Table of ChoiceOn élimine les don’t care
• The prime implicants form a set that completely covers the
n of Digital Logic
ca and V. Heuring
tous
1101 1111
√
√ √
n of Digital Logic
B-19
Principles of Computer Architecture by M. Murdocca and V. Heuring
Reduced Table • In a reduced table of choice, the esse
the minterms they cover are removed
• F = ABC + ABC + BD + AD
B-20
Multiple Output T• The power of tabular reduction comes
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
or a NOT Gate
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
osition
A D
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
• The speed of a digital system is governed by:
• the propagation delay through the logic gates and • the propagation delay across interconnections. • We will look at characterizing the delay for a logic gate, a
method of reducing circuit depth using function decomposition.
ca and V. Heuring
nd a
Principles of Computer Architecture by M. Murdocca and V. Heuring
B-21 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Multiple Output Table of ChoiF0(A,B,C) = ABC + BC
F1(A,B,C) = AC + AC + BC
F2(A,B,C) = B
B-22 Appendix B - Reductio
Speed and Performance
n of Digital Logic
ca and V. Heuring
ce
n of Digital Logic
B-23
Principles of Computer Architecture by M. Murdocca and V. Heuring
Propagation Delay f• (From Hamacher et. al. 1990)
B-24
MUX Decomp
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
g Tree
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
e Table
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
• Description of state machine M0 to be reduced.
ca and V. Heuring Principles of Computer Architecture by M. Murdocca and V. Heuring
• A reduced state table for machine M1.
B-25 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
OR-Gate Decomposition • Fanin affects circuit depth.
B-26 Appendix B - Reductio
State Reduction
n of Digital Logic
ca and V. Heuring
n of Digital Logic
B-27
Principles of Computer Architecture by M. Murdocca and V. Heuring
Distinguishin• A next state tree for M0.
B-28
Reduced Stat
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
educed State
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
te Assignment
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
ca and V. Heuring Principles of Computer Architecture by M. Murdocca and V. HeuringB-29 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Sequence Detector State TransitDiagram
B-30 Appendix B - Reductio
Sequence Detector State Tab
n of Digital Logic
ca and V. Heuring
ion
n of Digital Logic
le
B-31
Principles of Computer Architecture by M. Murdocca and V. Heuring
Sequence Detector RTable
B-32
Sequence Detector Sta
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
ables st be applied at the inputs
ts at time t+1.
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
er
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Sequence Detector
Circuit
ca and V. Heuring Principles of Computer Architecture by M. Murdocca and V. Heuring
B-33 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Sequence Detector K-Maps • K-map
reduction of next state and output functions for sequence detector.
B-34 Appendix B - Reductio
n of Digital Logic
ca and V. Heuring
n of Digital Logic
B-35
Principles of Computer Architecture by M. Murdocca and V. Heuring
Excitation T• Each table shows the settings that mu
at time t in order to change the outpu
B-36
Serial Add
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
dder Circuit
Appendix B - Reduction of Digital Logic
© 1999 M. Murdocca and V. Heuring
te Machine
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
ca and V. Heuring Principles of Computer Architecture by M. Murdocca and V. HeuringB-37 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Serial Adder Next-State Functio• Truth table showing next-state functions for a serial add
R, T, and J-K flip-flops. Shaded functions are used in the
B-38 Appendix B - Reductio
J-K Flip-Flop Serial Adder Circ
n of Digital Logic
ca and V. Heuring
ns er for D, S- example.
n of Digital Logic
uit
B-39
Principles of Computer Architecture by M. Murdocca and V. Heuring
D Flip-Flop Serial A
B-40
Majority Finite Sta
n of Digital Logic
ca and V. Heuring
duced
n of Digital Logic
nt flip-
B-43 Appendix B - Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
Majority FSM Circuit
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
flops; and (b) using T flip-flops.
ca and V. Heuring
B-41 Appendix B - Reductio
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdoc
Majority FSM State Table • (a) State table for majority FSM; (b) partitioning; (c) re
state table.
B-42 Appendix B - Reductio
Majority FSM State Assignme• (a) State assignment for reduced majority FSM using D