0% found this document useful (0 votes)
54 views33 pages

FPGA Based System Design: Engr. Rashid Farid Chishti Lecturer, Dee, Fet, Iiui Chishti@Iiu - Edu.Pk Week 1

This document provides a summary of digital logic design concepts including combinational logic, Boolean equations, Karnaugh maps, hazards, and NAND and NOR representation. It reviews logic fundamentals and discusses combinational logic, Boolean equations in sum of products and product of sums forms, and how to use Karnaugh maps to minimize logic functions. The document also covers hazards in combinational networks including static and dynamic hazards and techniques for removing hazards by adding redundant terms.

Uploaded by

Inayat Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views33 pages

FPGA Based System Design: Engr. Rashid Farid Chishti Lecturer, Dee, Fet, Iiui Chishti@Iiu - Edu.Pk Week 1

This document provides a summary of digital logic design concepts including combinational logic, Boolean equations, Karnaugh maps, hazards, and NAND and NOR representation. It reviews logic fundamentals and discusses combinational logic, Boolean equations in sum of products and product of sums forms, and how to use Karnaugh maps to minimize logic functions. The document also covers hazards in combinational networks including static and dynamic hazards and techniques for removing hazards by adding redundant terms.

Uploaded by

Inayat Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 33

FPGA Based System Design

ENGR. RASHID FARID CHISHTI


LECTURER,DEE, FET, IIUI
CHISHTI@IIU.EDU.PK

WEEK 1

DIGITAL LOGIC DESIGN REVISION

www.iiu.edu.pk Saturday, November 27, 2021


Review of Logic Design Fundamentals

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

Types of Boolean Equations


Canonical Form
 Sum of Min Terms
 F(A,B,C) = ABC + ABC' + AB'C + AB'C' + A'B'C
 Product of Max Terms
 F(A,B,C) = (A+B+C ) (A+B'+C) (A+B'+C' )
Standard Form
 Sum of Products (SOP)
 F(A,B,C) = A + B'C
 Product of Sums (POS)
 F(A,B,C) = (A+B+C) (A+B')
(Canonical Form)
Min Max Terms
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)


variables
 In a Four-variable K-map Location
of minterms
 each square corresponds to one
of the 16 possible minterms
 1 = minterm is present;
 0 (or blank) = minterm is absent;
 X = don’t 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
K-maps
Three Variable K-maps

Map for F(x,y,z) = ∑(3,4,6,7)

yz
yz
x 00 01 11 10
xz'
0
1
1
1 1 1

After Simplification F = yz + xz'


Four Variable K-maps

K-Map for F(A,B,C,D) = ∑(0,1,2,6,8,9,10)


CD
AB 00 01 11 10

00
1 1 1
B'C' 01
1 A'CD'

11

10 1 1 1 B'D'

After Simplification F(A,B,C,D)= B'D' + B'C' + A'CD'


Four Variable K-maps
K-Map for F(A,B,C,D) = ∑(0,1,2,5,8,9,10)
CD CD
AB 00 01 11 10

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

F = ACE + A'B'E' + BD'E


Six Variable
K-maps
Hazards in Combinational Networks

What are hazards in Combinational Network?


 Unwanted switching transients at the output (glitches)
Example
 ABC = 111, B changes to 0
 Assume each gate has propagation delay of 10 ns

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

Occur when different paths from input to output have


different propagation delays
Static 1-hazard
 a network output momentarily go to the 0 when it should remain a
constant 1
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 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

Why do we care about hazards?


Combinational networks
 don’t care – the network will function correctly
Synchronous sequential networks
 don’t 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
the number of transitions

20 27/11/21
Removing Static 1- Hazard
F(A,B,C,D) = ∑(0,1,4,5,6,7,14,15) = A'C' + BC

Cover the cube by


CD adding A'B to eliminate
AB 00 01 11 10
the static 1-hazard
00
1 1 0 0
A'C' 01
1 1 1 1

11 0 0 1 1 BC

10 0 0 0 0

F = A'C' + BC + A'B
Removing Static 1- Hazard

In the logic diagram of


F = A'C' + BC
With a = 0, b = 1, and D = 1, a glitch can occur as c
changes from 1 to 0 or visa-versa.
So we add the redundant term A'B by overlapping the two
groups to eliminates the static 1-Hazard
Removing Static 0- Hazard
F(A,B,C,D) = ∑(0,1,4,5,6,7,14,15) = (A' + C) (B + C')

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

F' = AC' + B'C + AB' So F = (A' + C) (B + C') (A' + B)


Dynamic Hazard (Multiple glitches)

Dynamic hazards are a consequence of multiple static hazards


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.
Dynamic Hazard (Multiple glitches)

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

Any logic function can be realized using only NAND or


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 27/11/21


NAND Gate
28
NAND Gate
29
NAND Gate
30
NAND Gate
31

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy