warmup
play

Warmup Approximately what is the largest number that can be - PowerPoint PPT Presentation

Warmup Approximately what is the largest number that can be represented with a signed 32-bit integer? Respond at pollev.com/stevenbell699 EE 201: Boolean equations and logic gates Steven Bell 22 January 2019 By the end of class today, you


  1. Warmup Approximately what is the largest number that can be represented with a signed 32-bit integer? Respond at pollev.com/stevenbell699

  2. EE 201: Boolean equations and logic gates Steven Bell 22 January 2019

  3. By the end of class today, you should be able to: Write truth tables for AND, OR, XOR, NOT, NAND, NOR, XNOR Write a boolean equation from an English description and vice-versa Draw a logic diagram from a boolean equation and vice-versa Write a truth table from a boolean equation and vice-versa

  4. Key representations Boolean equation AB + C Logic diagram Truth table A B A B C Y C 0 0 0 1 0 0 1 1 0 1 0 1

  5. Key representations Code !(A&&B) || C English Boolean equation description AB + C Not both apples and bananas... Logic diagram Truth table A B A B C Y C 0 0 0 1 0 0 1 1 Circuit diagram 0 1 0 1 V dd V dd A B C

  6. Boolean or boolean? George Boole (1815-1864) (Photo from Wikimedia)

  7. Name Bu ff er AND OR XOR Inverter NAND NOR XNOR Logic symbol A ⊕ B A ⊕ B Logic equation A AB A+B A AB A+B Truth table A Y A B Y A B Y A B Y A Y A B Y A B Y A B Y 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 1 0 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 1 1 1 C++ equivalent A A&&B A||B A!=B !A !(A&&B) !(A||B) A==B 74-series IC 7407 7408 7432 7486 7404 7400 7402 various

  8. Why is NAND a big deal?

  9. For the purposes of this course, MOS transistors are electrically-controlled switches . They have one terminal that controls the "switch", called the gate . When the transistor is on, current can fl ow between the other terminals, called the source and drain . They come in two types: V dd drain source gate gate source drain NMOS PMOS

  10. A simple gate V dd PMOS : "closed" when gate is low . A Y NMOS : "closed" when gate is high .

  11. A more complex gate V dd A B Y A B

  12. Bigger equations We'll use a bar to indicate inversion: A+B You might also see " ¬ " for inversion: ¬(A+B) AND takes precedence over OR: AB + C = (AB) + C (Think multiplication over addition)

  13. Combining gates Elements are objects: Nodes are the interconnections: Wires are connected if there's a dot:

  14. What is combinational? A circuit is combinational if: 1. It is a discrete logic gate, or 2. It is composed of combinational elements such that: There are no cycles, and Every node (wire) is only driven by one gate

  15. Who cares, anyway? In a combinational circuit, outputs are a function of only the current inputs Feedback loops can break this! Driving one wire with multiple gates breaks the digital abstraction!

  16. Translating representations Boolean equation AB + C Logic diagram Truth table A B A B C Y C 0 0 0 1 0 0 1 1 0 1 0 1

  17. Boolean equation to logic diagram

  18. Translating representations Boolean equation AB + C Evaluate Logic diagram Truth table A B A B C Y C 0 0 0 1 0 0 1 1 0 1 0 1

  19. Translating representations Boolean equation AB + C Evaluate Standard forms Logic diagram Truth table A B A B C Y C 0 0 0 1 0 0 1 1 0 1 0 1

  20. Translating representations Code Self-explanatory (hopefully!) English !(A&&B) || C Boolean equation description AB + C Not both apples and Evaluate bananas... Standard forms Logic diagram Truth table A B A B C Y C Prelab #1! Next week! 0 0 0 1 0 0 1 1 Circuit diagram 0 1 0 1 V dd V dd A B C

  21. For Thursday 1. Read the book (2.3-2.7) and complete the pre-class quiz www.ece.tufts.edu/ee/201/ Quiz is due at 9AM the day of class, so I can review it cp /ee/201/public_html/quizzes/quiz_02.txt ./ provide ee201 q2 quiz_02.txt

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