another example of truth table
play

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


  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

  2. Truth tables • Completely describe any function • can get big quickly • difficult to interpret the function

  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 (•) : A • B • 1 if both inputs are 1 • logical product ¯ A • NOT ( ¯ ) : • 1 if input is 0 • inversion • Gates implement these functions

  4. Laws of boolean algebra

  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)

  6. Gates • Gates implement circuits for logic functions Any logic function can be implemented by using AND, OR gates and inversions

  7. More gates • NOT gate • NAND gate: inverse of AND gate • NOR gate: inverse of OR gate

  8. More gates • XOR gates: different inputs = positive output • Summary truth tables

  9. Combination of logic gates Q = A AND NOT B D= NOT (A OR B) E = B AND C Q = D OR E

  10. What will be the output? A AND Q XOR B NAND C

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend