Lecture 3: Combinational Logic Specification and Simplification: - - PowerPoint PPT Presentation

lecture 3 combinational logic specification and
SMART_READER_LITE
LIVE PREVIEW

Lecture 3: Combinational Logic Specification and Simplification: - - PowerPoint PPT Presentation

Lecture 3: Combinational Logic Specification and Simplification: CSE 140: Components and Design Techniques for Digital Systems Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego 1 What you should know


slide-1
SLIDE 1

1

Lecture 3: Combinational Logic Specification and Simplification:

CSE 140: Components and Design Techniques for Digital Systems Diba Mirza

  • Dept. of Computer Science and Engineering

University of California, San Diego

slide-2
SLIDE 2

What you should know at the end of this lecture….

  • 1. How to derive the Sum of Product and Product of Sum

canonical forms from the truth table.

  • 2. How to design a combinational circuit starting with the

truth table.

  • 3. How to simplify switching functions using Boolean

Algebra axioms and theorems

  • 4. Circuit transformations using DeMorgan’s (Bubble

Pushing)

2

slide-3
SLIDE 3

3

Sum of Product Canonical Form

Q: Does the following SOP canonical expression correctly express the above truth table: Y(A,B)= Σm(2,3)

  • A. Yes
  • B. No

A B Y 1 1 1 1 1 1

slide-4
SLIDE 4

4

Sum of Product Canonical Form

I. sum(A,B) =

  • II. carry(A,B)=

Minterm A B Carry Sum A’B’ A’B 1 1 AB’ 1 1 AB 1 1 1

slide-5
SLIDE 5

5

DeMorgan’s Theorem

  • Y = AB = A + B
  • Y = A + B = A B
slide-6
SLIDE 6

6

Product of Sum Canonical Form

We will derive another canonical form using the SOP expression for the compliment

  • f the outputs: Carry and Sum

carry(A,B)=

Max term A B Carry Sum 1 1 1 1 1 1 1

slide-7
SLIDE 7

7

Product of Sum Canonical Form

The POS expression for sum(A,B)

  • A. (A’+B).(A+B’)
  • B. A’B + AB’
  • C. (A+B’).(A’+B)
  • D. Either A or C
  • E. None of the above

Max term A B Carry Sum 1 1 1 1 1 1 1

slide-8
SLIDE 8

PI Q: When would you use the SOP instead of the POS to

express the switching function?

  • A. When the output of the function is TRUE for most input

combinations.

  • B. When the output of the function is FALSE for most input

combinations.

  • C. We always prefer the SOP form because its more compact

8

slide-9
SLIDE 9

PI Q: When would you use the SOP instead of the POS to

express the switching function?

  • A. When the output of the function is TRUE for most input

combinations.

  • B. When the output of the function is FALSE for most input

combinations.

  • C. We always prefer the SOP form because its more compact

9

A B Carry 1 1 1 1 1

slide-10
SLIDE 10

10

Re-deriving the truth table

Switching Expressions: Sum (A,B) = A’B + AB’ Carry (A, B) = AB Ex: Sum (0,0) = 0’.0 + 0.0’ = 0 + 0 = 0 Sum (0,1) = 0’1 + 0.1’ = 1 + 0 = 1 Sum (1,1) = 1’1 + 1.1’ = 0 + 0 = 0

a b sum a b carry

Logic circuit for half adder:

A B carry sum 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0

Truth Table

slide-11
SLIDE 11

The SOP and POS forms don’t usually give the

  • ptimal circuit or the simplest Boolean

expression of the switching function

To optimize the circuit, we need to simplify the Boolean expression using:

  • 1. Boolean Algebra axioms and theorems
  • 2. Karnaugh Maps (K-Maps) (next lecture)

11

slide-12
SLIDE 12
  • 1. B = 0, if B not equal to 1
  • 2. 0’ = 1
  • 3. 1.1 = 1
  • 4. 0.1 = 0
  • 5. a+0=a, a.1=a Identity law
  • 6. a+a’=1, a.a’=0 Complement law

Axioms of Boolean Algebra

1-<12>

slide-13
SLIDE 13

13

  • I. Commutative Law: A + B = B +A

AB = BA

  • II. Distributive Law

A(B+C) = AB + AC A+BC = (A+B)(A+C) A B C A C A B A B C A C A B

Theorems of Boolean Algebra

slide-14
SLIDE 14

14

III Associativity (A+B) + C = A + (B+C) (AB)C = A(BC) C A B A B C C A B A B C

slide-15
SLIDE 15

15

IV: Consensus Theorem: AB+B’C+AC = AB+B’C

Venn Diagrams

slide-16
SLIDE 16

PI Q: Which of the following is AC’+BC +BA equal to?

  • A. AB+C’A
  • B. AC’+CB
  • C. BC+AB
  • D. None of the above

1-<16>

slide-17
SLIDE 17

Proof of consensus Theorem using Boolean Algebra

AB+B’C+AC = AB+B’C

1-<17>

slide-18
SLIDE 18

18

  • V. DeMorgan’s Theorem
  • Y = AB = A + B
  • Y = A + B = A B
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

A B Y A B Y

slide-19
SLIDE 19

1-<19>

Circuit Transformation: Bubble Pushing

  • Pushing bubbles backward (from the output) or forward

(from the inputs) changes the body of the gate from AND to OR or vice versa.

  • Pushing a bubble from the output back to the inputs puts

bubbles on all gate inputs.

  • Pushing bubbles on all gate inputs forward toward the output

puts a bubble on the output and changes the gate body.

A B Y A B Y

A B Y A B Y

slide-20
SLIDE 20

Example of transforming circuits using bubble pushing

20