Académique Documents
Professionnel Documents
Culture Documents
based on textbook
Contemporary Logic Design, 2nd Edition
by R. H. Katz and G. Borriello
COMMONWEALTH OF AUSTRALIA
Copyright Regulations 1969
WARNING
This material has been reproduced and communicated to you by or on behalf of
Monash University pursuant to Part VB of the Copyright Act 1968 (the Act).
The material in this communication may be subject to copyright under the Act. Any
further reproduction or communication of this material by you may be the subject of
copyright protection under the Act.
Do not remove this notice.
Sum-of-products
Product-of-sums
de Morgans law: (A + B) = A B
written differently: A + B = (A B)
(A B) = A + B
(A B) = (A + B)
In other words
de Morgans:
A + B = (A B)
de Morgans:
A B = (A + B)
conservation of inversions
do not alter logic function
C
D
III - Working with
Combinational Logic
C
D
NAND
NAND
NAND
C
D
C
D
NAND
NAND
NAND
Z = [ (A B) (C D) ]
= [ (A + B) (C + D) ]
= [ (A + B) + (C + D) ]
= (A B) + (C D) 9
III - Working with
Combinational Logic
C
D
A
\A
NOR
\B
NOR
Z
C
D
conserve
"bubbles"
III - Working with
Combinational Logic
NOR
Step 1
NOR
\C
\D
NOR
Step 2
conserve
"bubbles"
10
\B
NOR
NOR
\C
\D
NOR
Z = { [ (A + B) + (C + D) ] }
={
(A + B) (C + D)
(A + B) + (C + D)
(A B) + (C D) 9
11
A
D
F
A
E
F
B
D
F
B
E
F
C
D
F
C
E
F
A
B
C
D
E
F
G
Factored form:
x = (A D + A E + B D + B E + C D + C E) F + G
= (A (D + E) + B (D + E) + C( D + E) ) F + G
= (A + B + C) (D + E) F + G
12
B
B
F1
C C
+ F
2
D
E
A
F5
+ F
G
D
E
F4
+
F3
Copyright 2004, Gaetano Borriello and Randy H. Katz
13
Collapsing
14
(9 literals)
F = (A + B) (C + D) + E
A
C
A
D
A
B
B
C
B
D
C
D
E
Before Factoring
After Factoring
15
A
B
F
F
C
D
Before Decomposition
III - Working with
Combinational Logic
(4 literals)
After Decomposition
16
11 literals, 8 gates
11 literals, 7 gates
"Kernels": primary divisors
E
A
B
C
D
A
B
C
D
E
Before Extraction
III - Working with
Combinational Logic
A
B
C
D
E
F
G
After Extraction
17
(4 literals for F)
F rewritten in terms of G:
(3 literals for F)
F = G (A + D)
18
quotient
remainder
example:
X=AC + AD + BC + BD + E
Y=A+B
X "divided" by Y is
X = Y (C + D) + E
Complexity: finding suitable divisors
F=AD + BCD + E
G=A+B
G does not divide F under algebraic division rules
G does divide F under Boolean rules (very large number of these!)
F/G = (A + C) D
F = [G (A + C) D] + E
= (A + B) (A + C) D + E
= (A A + A C + A B + B C) D + E
F written as G Q + R
= (A + B C) D + E
=AD+BCD+E
III - Working with
Combinational Logic
19
F = A (B + C D) + B C
original
AND-OR
network
introduction and
conservation of
bubbles
redrawn in terms
of conventional
NAND gates
C
D
Level 1
Level 2
Level 3
Level 4
F
B
A
B
\C
C
D
B
A
B
\C
C
D
\B
A
B
\C
20
F = A (B + C D) + B C
original
AND-OR
network
Level 2
C
D
B
A
B
\C
Level 3
Level 4
F
C
introduction and
conservation of
bubbles
D
B
A
B
\C
redrawn in terms
of conventional
NOR gates
\C
\D
B
\A
\B
C
21
Example
A
B
C
D
B
C
\D
original circuit
B
C
X
X
F
B
C
\X
\D
add double bubbles to
invert output of AND gate
22
Advantages
Disadvantages
23
Waveforms
Some terms
rise time time for output to transition from low to high voltage
fall time time for output to transition from high to low voltage
pulse width time that an output stays high or stays low between changes
24
A A = 0
delays matter
F is not always 0
pulse 3 gate-delays wide
25
resistor
A
open
switch
B
C
D
close switch
initially
undefined
open switch
26
wait until signals are stable (by using a clock & SYNCHRONOUS
TIMING METHODOLOGY)
Suggest that first two approaches be used, but we'll tell you about
hazard-free design anyway!
III - Working with
Combinational Logic
27
1
0
Static
1-hazard
Static
0-hazard
1
0
0
1
Dynamic
1 hazards
0
Kinds of Hazards
III - Working with
Combinational Logic
28
A
\C
G1
1
0
\A
D
G3
\A
D
G1
1
0
G2
A
\C
G3
01
01
11
10
1
D
ABCD = 1101
ABCD = 1100
00
G2
10
11
10
F = A' D + A C'
1
A
\C
G1
\A
D
1
0
1
A
\C
1
G3
G2
0
ABCD = 1101
F
\A
D
0
G1
1
0
1
0
G3
A
\C
F
G2
0
\A
D
0
G1
1
1
0
1
G3
G2
ABCD = 0101 (A is 1)
29
AB
00
01
11
10
00
01
CD
D
C
11
10
30
Glitch Example
Consider now F in PoS form:
F = (A' + C')(A + D)
01
11
10
00
01
1
D
Glitch present!
C
11
10
31
1
G1
01
\B 1 0
\C
1
01
Slow
G2
G3
1 01
10
G5
A 0
\B
10
G4
1 01 0
F
10
V ery slow
32
Implementations Summary
Transition from Simple Gates to more complex gate building blocks
Conversion from AND/OR, OR/AND to NAND/NAND, NOR/NOR
Multi-Level Logic: Reduced gate count, fan-ins, but increased delay
Time Response in Combinational Logic:
Gate Delay, Rise Time, Fall Time
Hazards and Hazard-free Design
33
Design problems
Time behavior
Later
34