Another example of truth table Logic function: 3 inputs : A, B, C - - PowerPoint PPT Presentation

another example of truth table
SMART_READER_LITE
LIVE PREVIEW

Another example of truth table Logic function: 3 inputs : A, B, C - - PowerPoint PPT Presentation

Another example of truth table Logic function: 3 inputs : A, B, C 3 outputs : D, E, F D = T if at least 1 input is T E = T if 2 inputs are T F = T if 3 inputs are T Truth tables Completely describe any function


slide-1
SLIDE 1

Another example of truth table

  • Logic function:
  • 3 inputs: A, B, C
  • 3 outputs: D, E, F
  • D = T if at least 1 input is T
  • E = T if 2 inputs are T
  • F = T if 3 inputs are T
slide-2
SLIDE 2

Truth tables

  • Completely describe any function
  • can get big quickly
  • difficult to interpret the function
slide-3
SLIDE 3

Boolean algebra

  • Alternative to truth table
  • Variables have 0 or 1 values
  • 3 operators: OR, AND, NOT
  • OR (+) : A + B
  • 1 if at least one input is 1
  • logical sum
  • AND (•) :
  • 1 if both inputs are 1
  • logical product
  • NOT ( ¯ ) :
  • 1 if input is 0
  • inversion
  • Gates implement these functions

¯ A

A • B

slide-4
SLIDE 4

Laws of boolean algebra

slide-5
SLIDE 5

Example

  • Logic function
  • 3 inputs: A, B, C
  • 3 outputs: D, E, F
  • D = T if at least 1 input is T
  • E = T if 2 inputs are T
  • F = T if 3 inputs are T

(what can be true and what cannot be ) (exactly two inputs are true)

slide-6
SLIDE 6

Gates

  • Gates implement circuits for logic functions

Any logic function can be implemented by using AND, OR gates and inversions

slide-7
SLIDE 7

More gates

  • NOT gate
  • NAND gate: inverse of AND gate
  • NOR gate: inverse of OR gate
slide-8
SLIDE 8

More gates

  • XOR gates: different inputs = positive output
  • Summary truth tables
slide-9
SLIDE 9

Combination of logic gates

Q = A AND NOT B D= NOT (A OR B) E = B AND C Q = D OR E

slide-10
SLIDE 10

What will be the output?

AND NAND XOR

A B C Q