FPGA Based System Design: Engr. Rashid Farid Chishti Lecturer, Dee, Fet, Iiui Chishti@Iiu - Edu.Pk Week 1
FPGA Based System Design: Engr. Rashid Farid Chishti Lecturer, Dee, Fet, Iiui Chishti@Iiu - Edu.Pk Week 1
WEEK 1
Combinational Logic
Boolean Equations
Karnaugh Maps
Hazards
NAND, NOR Representation
Combinational Logic
3
Has no memory
Output depends only on the present input
x1 z1
x2 z2
Combinational
Logic
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
yz
yz
x 00 01 11 10
xz'
0
1
1
1 1 1
00
1 1 1
B'C' 01
1 A'CD'
11
10 1 1 1 B'D'
00
1 1 0 1
01
0 1 0 0
BD'
11 0 0 0 0
10 1 1 0 1
AB
After Simplification
F'(A,B,C,D)= AB + CD + BD'
So F(A,B,C,D)= (A'+B') (C'+D') (B'+D)
Using Don’t Care in K-maps
F = yz + w'x' F = yz + w' z
Five Variable K-maps
A = 1
B = 1 › 0 F = 1 › 0 › 1
F = AB' + BC
C = 1
15 27/11/21
A = 1
E
B = 1 › 0 F = 1›0›1
F = AB' + BC
D
C = 1
0 ns 10 ns 20 ns 30 ns 40 ns 50 ns 60 ns
Hazards in Combinational Networks
17 27/11/21
Removing Hazard
AB AB
C 00 01 11 10 C 00 01 11 10
0
1 0
1
1
1 1 1 1
1 1 1
f AB' BC f AB' BC AC
A D A D
B B
E E
F = AB' + BC
C C F=AB'+BC+AC
G
A
To avoid hazards:
every pair of adjacent 1s should be covered by a 1-term
18 27/11/21
A E
B
Removing Hazard D
UAH-
CPE/EE
422/522 C F=AB'+BC+AC
AM
G
A
0 ns 10 ns 20 ns 30 ns 40 ns 50 ns 60 ns
19 27/11/21
Hazards in Combinational Circuits
20 27/11/21
Removing Static 1- Hazard
F(A,B,C,D) = ∑(0,1,4,5,6,7,14,15) = A'C' + BC
11 0 0 1 1 BC
10 0 0 0 0
F = A'C' + BC + A'B
Removing Static 1- Hazard
AC'
CD
AB 00 01 11 10
00
Add AB' to 1 1 0 0
eliminate static-0
hazard 01
1 1 1 1
B'C
Note: AB'D covers 11 0 0 1 1
too, but is not
minimal.
10 0 0 0 0
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.
Dynamic Hazard (Multiple glitches)
Designing with NAND and NOR Gates (1)
27