Professional Documents
Culture Documents
Fpga 01
Fpga 01
Fpga 01
www.iiu.edu.pk
Boolean Equations
Karnaugh Maps Hazards
Combinational Logic
3
xn
zm
Note: Positive Logic low voltage corresponds to a logic 0, high voltage to a logic 1 Negative Logic low voltage corresponds to a logic 1, high voltage to a logic 0
Boolean Equations
Types of Boolean Equations Canonical Form Sum of Min Terms
F(A,B,C)
Product
of Max Terms
= (A+B+C ) (A+B'+C) (A+B'+C' )
F(A,B,C)
Standard Form
Sum
of Products (SOP)
= A + B'C
= (A+B+C) (A+B')
F(A,B,C)
Product
of Sums (POS)
F(A,B,C)
(Canonical Form)
Example: Express the Boolean function F=A+B'C as a sum of min terms and product of max terms
F = = = = = = = = = = = A + B'C A (B + B') + B'C (A + A') AB + AB' + AB'C + A'B'C AB(C + C') + AB'(C + C')+ AB'C + A'B'C ABC + ABC' + AB'C + AB'C'+ AB'C + A'B'C ABC + ABC' + AB'C (1 + 1) + AB'C'+ A'B'C ABC + ABC' + AB'C (1) + AB'C'+ A'B'C ABC + ABC' + AB'C + AB'C' + A'B'C 111 + 110 + 101 + 100 + 001 7 + 6 + 5 + 4 + 1 (1,4,5,6,7) = (0,2,3)
K-maps
Convenient way to simplify logic functions of 2,3, 4, 5, (6)
each square corresponds to one of the 16 possible minterms 1 = minterm is present; 0 (or blank) = minterm is absent; X = dont care the input can never occur, or the input occurs but the output is not specified adjacent cells differ in only one value => can be combined
Location of minterms
K-maps
1
1 1 1
xz'
B'C'
01
A'CD'
11
10
B'D'
CD
1 0 0 1
1 1 0 1
0 0 0 0
1 0 0 1
AB
01
BD'
11
10
F = yz + w'x'
F = yz + w' z
B = 1 0
F = 1 0 1 F = AB' + BC C = 1
15
21/07/2012
A = 1
B = 1 0
F = 101 F = AB' + BC
C = 1
B D
E
F
0 ns
10 ns
20 ns
30 ns
40 ns
50 ns
60 ns
Static 0-hazard a network output momentarily go to the 1 when it should remain a constant 0
Dynamic hazard if an output change three or more times, when the output is supposed to change from 0 to 1 (1 to 0)
17
21/07/2012
Removing Hazard
AB C
0
AB
00 01 11 10
C
0
00
01
11
10
1 1 1 1
1 1 1 1
f AB' BC
B A D E
F = AB' + BC
f AB' BC AC
B A D E
C
A
F=AB'+BC+AC
21/07/2012
Removing Hazard
B
UAHCPE/EE 422/522 AM
A C A
E D G
F=AB'+BC+AC
D
E G F 0 ns 10 ns 20 ns 30 ns 40 ns 50 ns 60 ns
19
21/07/2012
Synchronous sequential networks dont care - the input signals must be stable within setup and hold time of flip-flops Asynchronous sequential networks hazards can cause the network to enter an incorrect state circuitry that generates the next-state variables must be hazard-free Power consumption is proportional to
21/07/2012
CD
AB
00 00 01 11 10
A'C'
01
1
0
1
0
1
1
1
1
BC
11
10
0
F = A'C' + BC + A'B
AC'
CD
AB
00 01 11 10 00
Add AB' to eliminate static-0 hazard Note: AB'D covers too, but is not minimal.
01
1
0
1
0
1
1
1
B'C
11
10
So
caused by multiply re-convergent paths in a multilevel circuit. Dynamic hazards are not easy to eliminate. Elimination of all static hazards eliminates dynamic hazards. Approach: Transform a multilevel circuit into a two-level circuit and eliminate all of the static hazards.
The redundant cube eliminates the static 1-hazard and assures that F_dynamic will not depend on the arrival of the effect of the transition in C.
NOR gates Implementation of NAND and NOR gates is easier than that of AND and OR gates (e.g., CMOS)
UAH-CPE/EE 422/522
AM
21/07/2012
NAND Gate
28
NAND Gate
29
NAND Gate
30
NAND Gate
31