Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.

Similar presentations


Presentation on theme: "Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary."— Presentation transcript:

1 Logic Design A Review

2 Binary numbers

3 Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary

4 Boolean Algebra ❖ Two Values: zero and one ❖ Three Basic Functions: And, Or, Not ❖ Any Boolean Function Can be Constructed from These Three And 01 Or 01 Not 0 00 0 01 0 1 1 01 1 11 1 0

5 Algebraic Laws ClassificationLaw Identity a 1=1 a = a a +0=0+ a = a Dominance a 0=0 a =0 1+ a = a +1=1 Commutativity a+b=b+aa+b=b+a ab = ba Associativity a ( bc )=( ab ) c a +( b + c )=( a + b )+ c Distributive a ( b + c )= ab + ac a + bc =( a + b )( a + c ) Demorgan’s Laws ( a + b ) ′ = a ′ b ′ ( ab ) ′ = a ′ + b ′

6 Boolean Expressions ❖ Addition represents OR ❖ Multiplication represents AND ❖ Not is represented by a prime a’ or an overbar a ❖ Examples: ❖ s = a’bc + ab’c + abc’ + a’b’c’ ❖ q = ab + bc + ac + abc

7 Superfluous Terms ❖ The following Two Equations Represent The Same Function. q = ab + bc + ac + abc q = ab + bc + ac abcqabcq 00000000 00100010 01000100 01110111 10001000 10111011 11011101 11111111

8 Prime Implicants ❖ A Prime Implicant is a Product of Variables or Their Complements, eg. ab’cd’ ❖ If a Prime Implicant has the Value 1, then the Function has the Value 1 ❖ A Minimal Equation is a Sum of Prime Implicants

9 Minimization and Minterms ❖ Minimization Reduces the Size and Number of Prime Implicants ❖ A MinTerm is a Prime Implicant with the Maximum Number of Variables ❖ For a 3-input Function a’bc is a MinTerm, while ab is not. ❖ Prime Implicants can be Combined to Eliminate Variables, abc’+abc = ab

10 Minimization with Maps ❖ A Karnaugh Map C B 00011110 0 1 0 01 A ^ 1101100

11 Procedure ❖ Select Regions Containing All 1’s ❖ Regions should be as Large as Possible ❖ Regions must contain 2 k cells ❖ Regions should overlap as little as possible ❖ The complete set of regions must contain all 1’s in the map

12 Procedure 2 ❖ Top and Bottom of Map are Contiguous ❖ Left and Right of Map are Contiguous ❖ Regions represent Prime Implicants ❖ Use Variable name guides to construct equation – Completely inside the region of a variable means prime implicant contains variable – Completely outside the region of a variable means prime implicant contains negation

13 Applied to Previous Map C B 00011110 0 1 0 01 A ^ 1101100 q=c’b’+c’a’

14 A 4-Variable Karnaugh Map D C 00011110 00 0 0 0 0 B ^ 010 110 111111 101101 A 100 111111

15 First Minimization D C 00011110 00 0 0 0 0 B ^ 010 110 111111 101101 A 100 111111

16 Second Minimization D C 00011110 00 0 0 0 0 B ^ 010 110 111111 101101 A 100 111111

17 Minimal Forms for Previous Slides: ❖ ❖ ab ′ d + bc ′ d + a ′ bc + acd ′ ac ′ d + a ′ bd + bcd ′ + ab ′ c ❖ Moral: A Boolean Function May Have Several Different Minimal Forms ❖ Karnaugh Maps are Ineffective for Functions with More than Six Inputs.

18 Basic Logic Symbols And Or Not

19 The Exclusive Or Function Xor 01 0 01 1 10

20 A Simple Logic Diagram Signal Flow

21 Additional Logic Symbols Nand Nor Buffer Xnor

22 Decoder  A binary decoder has a n-bit binary code input code and a one activates output out of 2 n outputs is called a binary decoder.  A binary decoder is used when it is necessary to activate exactly one of 2 n outputs based on an n-bit input value.  Notice Enable signals:

23 Truth table of a Decoder  2x4 decoder  3x8 decoder

24 Encoder  A digital circuit that performs the inverse operation of a decoder is called an encoder.  An encoder has 2 n input lines and n output lines  In encoder the output lines generate binary code corresponding to the input value.

25 Truth table of 8x3 Encoder

26 Multiplexer  The multiplexer is a circuit whose output is one of several inputs, depending on the value given by some other selection inputs. In a circuit, a multiplexer is drawn as a trapezoid as follows.  Normally, there are 2 n input lines and n selection lines whose bit combinations determine which input is selected.

27 Circuit of a Multiplexer  Truth table  Circuit  Symbol

28 Tristate Elements ❖ Three States: – Zero (Output is grounded) – One (Output connected to Power Terminal) – High-Impedance (Output Not Connected to Either Power Or Ground) ❖ Can be Used to Construct Cheap Multiplexors

29 CMOS Tri-state Buffers Non-InvertingInverting

30 Tri-State Buffer Issues ❖ The Gate Amplifies its Signal ❖ May be Inverting or Non-Inverting ❖ Often used to Construct Multiplexors Using Wired-Or Connections

31 More Tri-State Issues ❖ In a Wired-Or Connection, Only One Buffer can be in Non-Tristate State ❖ Violating This Rule Can Destroy The Circuit Due a Power/Ground Short 1 1 1 0 DANGER!


Download ppt "Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary."

Similar presentations


Ads by Google