Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• Introduction
• Boolean Equations
• Boolean Algebra
• From Logic to Gates
• From Gates to Transistors
• X’s and Z’s
• Karnaugh Maps
• Combinational Building Blocks
• Timing
Chap 2
– Combinational Logic
» Memoryless
» Outputs determined by current values
of inputs
– Sequential Logic
» Has memory
» Outputs determined by previous and Example of combinational composition
• Every element is combinational
current values of inputs • Every node is either an input or connects
to exactly one output
• The circuit contains no cyclic paths
minterm
A B Y minterm name
0 0 0 A B m0
0 1 1 A B m1
1 0 0 A B m2
1 1 1 A B m3
Y = F(A, B) = AB + AB = Σ(1, 3)
• Axioms
B B B B
1 = B 0 = 0 B = B B = 0
B B B
0 = B 1 = 1 B = B B
B = 1
B = B
• Y = AB = A + B A
Y
B
A
Y
B
• Y = A + B = A B A
B
Y
A
Y
B
Y = (A+BD)C Y = (ACE+D) + B
= (A+BD) + C = (ACE+D) • B
= (A•(BD)) + C = (ACE•D) • B
= (A•(BD)) + C = ((AC+E)•D) • B
= ABD + C = ((AC+E)•D) • B
= (ACD + DE) • B
= ABCD + BDE
– Backward:
» Body changes A A
Y Y
B B
» Adds bubbles to inputs
– Forward:
» Body changes A A
Y Y
» Adds bubble to output
B B
– Rules
» Begin at output, then work toward inputs
» Push bubbles on final output back
» Draw gates in a form so bubbles cancel
A
B
C Y
D
C Y
D
no output
A bubble
B
C Y
D
bubble on
A input and output
B
C Y
D
no bubble on
input and output
A
B
C Y
D
Y = ABC + D
– Examples : Recall: A’ = A
Y = A(AB + ABC)
= A(AB(1 + C)) T8: Distributivity
= A(AB(1)) T2’: Null Element
= A(AB) T1: Identity
= (AA)B T7: Associativity
= AB T3: Idempotency
A B C
minterm: ABC
minterm: ABC
minterm: ABC
wires crossing
wires connect wires connect without a dot do
at a T junction at a dot not connect
– Don’t Cares
A 3 A2 A 1 A 0
A3 A2 A1 A0 Y3 Y2 Y1 Y0 Y3
0 0 0 0 0 0 0 0 Y2
0 0 0 1 0 0 0 1
0 0 1 X 0 0 1 0
0 1 X X 0 1 0 0 Y1
1 X X X 1 0 0 0
Y0
2 2
1 2
2
1
2
3
2
2 2 3
2
3
A=1
Y=X
B=0
• Warnings :
– Contention usually indicates a bug.
– X is used for “don’t care” and contention
» Look at the context to tell them apart.
A Y processor en1
Tristate Buffer to bus
from bus
E A Y
0 0 Z video en2
0 1 Z to bus
1 0 0 from bus
sharedbus
1 1 1
Ethernet en3
to bus
• Floating nodes are used in tristate busses from bus
Y
A B C Y AB
0 0 0 1 00 01 11 10
C
0
0
0
1
1
0
1
0
• Circle 1’s in adjacent squares
0 1 1 0 0 1 0 0 0
1 0 0 0 • In Boolean expression, include only
1
1
0
1
1
0
0
0 1 1 0 0 0
literals whose true and complement form
1 1 1 0 are not in the circle
Y = AB
• Example
Y Truth Table
AB K-Map
C 00 01 11 10 Y
A B C Y AB
0 0 0 0 C 00 01 11 10
0 ABC ABC ABC ABC 0 0 1 0
0 1 0 1 0
0 1 1 1
1 ABC ABC ABC ABC 1 0 0 0
1 0 1 0 1
1 1 0 0
1 1 1 1
A B C D Y Y
0 0 0 0 1 AB
0 0 0 1 0 CD 00 01 11 10
0 0 1 0 1
0 0 1 1 1 00
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1 01
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1 11
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0 10
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
A B C D Y Y
0 0 0 0 1 AB
0 0 0 1 0 CD 00 01 11 10
0 0 1 0 1
0 0 1 1 1 00
0 1 0 0 0
0 1 0 1 X
0 1 1 0 1 01
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1 11
1 0 1 0 X
1 0 1 1 X
1 1 0 0 X 10
1 1 0 1 X
1 1 1 0 X
1 1 1 1 X
S D1 D0 Y S Y
– Multiplexer Implementations 0
0
0
0
0
1
0
1
0
1
D0
D1
» Logic gates 0
0
1
1
0
1
0
1
1 0 0 0
» Tristates 1 0 1 0
1 1 0 1
1 1 1 1
Y
D0 D1
00 01 11 10
S
0 0 0 1 1
S
1 0 1 1 0 D0
Y = D 0S + D1S Y
D1
D0
S
D1
A
A B Y A Y
0 0 0
0 0 0
0 1 0 Y
Y = AB 1 0 0 1 B B 1
1 1 1
– Implementation A1 A0 Y3 Y2 Y1 Y0
0 0 0 0 0 1
0 1 0 0 1 0
A1 A0 1 0 0 1 0 0
1 1 1 0 0 0
Y3 2:4
Decoder Minterm
Y2 11 AB
A 10 AB
Y1 B 01 AB
00 AB
Y0
Y = AB + AB
= A ⊕ B Y
A Y
Critical Path
tpd
A n1
A
B
n2
C
Y
D Y
tcd
Short Path
Time
A
B Critical Path
Y
A=0 0 1
C B=1 0 n1
Y=1 0 1
n2
Y
AB C=1 1 0
00 01 11 10
C
0 1 0 0 0 Short Path
1 1 1 1 0 B
Y = AB + BC
n2
n1
Y glitch
Time
0 1 0 0 0
1 1 1 1 0
AC Y = AB + BC + AC
A=0
B=1 0
Y=1
C=1