1 / 16

Department of Computer and Information Science, School of Science, IUPUI

Department of Computer and Information Science, School of Science, IUPUI. CSCI 240. Digital Logic. Boolean Algebra to Logic Gates. Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations +, *, ’.

emily
Download Presentation

Department of Computer and Information Science, School of Science, IUPUI

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Department of Computer and Information Science,School of Science, IUPUI CSCI 240 Digital Logic

  2. Boolean Algebra to Logic Gates • Logic circuits are built from components called logic gates. • The logic gates correspond to Boolean operations +, *, ’. • Binary operations have two inputs, unary has one OR + AND * NOT ’

  3. AND A Logic Gate: A*B Truth Table: B A B Series Circuit: A*B

  4. OR A Logic Gate: A+B Truth Table: B A Parallel Circuit: B A+B

  5. NOT Logic Gate: (also called an inverter) A A’ or A Truth Table: Single-throw Double-pole Switch: A A’ or A

  6. n-input Gates • Because + and * are binary operations, they can be cascaded together to OR or AND multiple inputs. A A B A+B+C ABC B C A A B A+B+C ABC B C C

  7. n-bit Inputs • For convenience, it is sometimes useful to think of the logic gates processing n-bits at a time. This really refers to n instances of the logic gate, not a single logic date with n-inputs. 1101100101 1101110111 0100110111 10001111 00001100 00111100 001110 110001

  8. A B Y C Logic Circuits ≡ Boolean Expressions • All logic circuits are equivalent to Boolean expressions and any boolean expression can be rendered as a logic circuit. • AND-OR logic circuits are equivalent to sum-of-products form. • Consider the following circuits: A y=aB+Bc abc B C aBc y Ab y=abc+aBc+Ab

  9. NAND and NOR Gates • NAND and NOR gates can greatly simplify circuit diagrams. As we will see, can you use these gates wherever you could use AND, OR, and NOT. NAND NOR

  10. XOR and XNOR Gates • XOR is used to choose between two mutually exclusive inputs. Unlike OR, XOR is true only when one input or the other is true, not both. XOR XNOR

  11. Properties of NAND AND NOR • NAND and NOR have special properties, but neither satisfies the distributive or associative laws. It should be clear by looking at these properties that NAND and NOR are duals.

  12. NAND and NOR as Universal Logic Gates • Any logic circuit can be built using only NAND gates, or only NOR gates. They are the only logic gate needed. • Here are the NAND equivalents:

  13. NAND and NOR as Universal Logic Gates (cont) • Here are the NOR equivalents: • NAND and NOR can be used to reduce the number of required gates in a circuit.

  14. Example Problem • A hall light is controlled by two light switches, one at each end. Find (a) a truth function, (b) a Boolean expression, and (c) a logic network that allows the light to be switched on or off by either switch. • Let x and y be the switches: (What kind of gate has this truth table?

  15. Example (cont) • One possible equation is the complete sum-of-products form: f(x,y) = xY + Xy • Use The Most Complex Machine xLogicCircuit Module to implement the equation.

  16. Acknowledgements • Eck, David. The Most Complex Machine • Gersting, Judith, Mathematical Structures for Computer Science

More Related