16
Digital Electronics

Digital Electronics Chapter 3 Gate-Level Minimization

Embed Size (px)

Citation preview

Page 1: Digital Electronics Chapter 3 Gate-Level Minimization

Digital Electronics

Page 2: Digital Electronics Chapter 3 Gate-Level Minimization

Chapter 3

Gate-Level Minimization

Page 3: Digital Electronics Chapter 3 Gate-Level Minimization

Karnaugh Maps

Simplify

F =A'B'C + A'BC' + AB'C+A'BC + ABC

Page 4: Digital Electronics Chapter 3 Gate-Level Minimization

K-Map

Simplify

F =A'B'C + A'BC' + AB'C+A'BC + ABC

F = C + A'B

Page 5: Digital Electronics Chapter 3 Gate-Level Minimization

K-Map with “don’t care”Simplify

F(w,x,y,z) = Σ (1,3,7,11,15)

d(w,x,y,z) = Σ (0,2,5)

F = z (y + w' )

Page 6: Digital Electronics Chapter 3 Gate-Level Minimization

DeMorgan’s Picture!

Two Equivalent Representations

Page 7: Digital Electronics Chapter 3 Gate-Level Minimization

How Bubbles Move !

F = AB + CD

Three equivalent representations of F = AB + CD

Page 8: Digital Electronics Chapter 3 Gate-Level Minimization

NAND Implementation

F = xy' + x'y + z

Page 9: Digital Electronics Chapter 3 Gate-Level Minimization

Designing for Equivalence

Design a circuit to check if x = y

Page 10: Digital Electronics Chapter 3 Gate-Level Minimization

Hint: Review XOR and XNOR

XNOR will be high if x = y

Page 11: Digital Electronics Chapter 3 Gate-Level Minimization

Odd and Even Functions

(a) Checks for odd number of 1’s

(b) Checks for even number of 1’s

Page 12: Digital Electronics Chapter 3 Gate-Level Minimization

Parity Generator / Checker

Even Parity Generator Even Parity Checker

P = 1 if x,y,z have odd number of 1’s so that the four bits, x, y, z, and P have an even number of 1’s

C= 1 if there is error, that is if the four bits received have an odd number of 1’s

Page 13: Digital Electronics Chapter 3 Gate-Level Minimization

VHDL

Verilog Hardware Description Language

// A simple example

module my_example (A,B,C,x,y);

input A,B,C;

output x,y;

wire e;

and g1 (e,A,B);

not g2 (y,C);

or g3 (x,e,y);

endmodule

Page 14: Digital Electronics Chapter 3 Gate-Level Minimization

Comments on my_example

// indicates a comment line

statements are terminated with ;

endmodule has no semicolon

keywords like module, input etc. must be in lowercase

gate declarations must have the output first then the inputs separated

by commas

Page 15: Digital Electronics Chapter 3 Gate-Level Minimization

Circuit Diagram of my_example

Page 16: Digital Electronics Chapter 3 Gate-Level Minimization

That’s All Folks!