Docsity

L4 universal logic gates, Lecture notes of Digital Electronics

Partial preview of the text

Download L4 universal logic gates and more Lecture notes Digital Electronics in PDF only on Docsity!

15EC304 Digital System

Design

Lecture-4 Universal Logic

Gates

Session Objectives

1. To Write the truth tables for, and draw the symbols for,

NOR, and NAND gates

2. Understand the operation of AND-OR-INVERT gates and

expanders

NOR Gates

 (^) The logic circuit of Fig. used to be called a NOT-OR gate because the output is Y = (A + B)’  (^) Read this as “Y equals NOT A OR B” or “Y equals the complement of A OR B.” Because the circuit is an OR gate followed by an inverter, the only way to get a high output is to have both inputs low, as shown in the truth table of Table.

NOR Gate Symbol

 (^) The logic circuit has become so popular that the abbreviated symbol of Fig. is used for it.  (^) The bubble (small circle) on the output is a reminder of the inversion that takes place after the ORing. Furthermore, the words NOT-OR are contracted to the word NOR.  (^) With a NOR gate, all inputs must be low to get a high output. If any input is high, the output is low.

De Morgan’s First Theorem

 (^) The Boolean equation for Fig. a is Y = (A + B)’  (^) The Boolean equation for Fig. b is Y = A’.B’  (^) The first equation describes a NOR gate, and the second equation a bubbled AND gate. Since the outputs are equal for the same inputs, we can equate the right-hand members to get (A + B)’ = A’.B’  (^) This identity is known as De Morgan’s first theorem.  (^) In words, it says the complement of a sum equals the product of the complements.

Universality of NOR Gate

 (^) NOT Gate from NOR Gate  (^) OR gate from NOR Gate  (^) AND Gate from NOR Gate

NAND Gate Symbol

 (^) The logic circuit has become so popular that the abbreviated symbol of Fig. is used for it.  (^) The bubble on the output reminds us of the inversion after the ANDing. Also, the words NOT-AND are contracted to NAND. Whenever you see this symbol, remember that the output is NOT the AND of the inputs.  (^) With a NAND gate, all inputs must be high to get a low output. If any input is low, the output is high.

NAND Gate Symbol

 (^) Figure shows inverters on the input lines of an OR gate. This logic circuit is often drawn in the abbreviated form shown in another Fig.  (^) The bubbles on the inputs are a reminder of the inversion that takes place before the OR operation. We will refer to the abbreviated drawing as a bubbled OR gate.  (^) We find that output Y and inputs A, B are identical for bubbled OR gate and NAND gate.  (^) Therefore, these two circuits are equivalent and thus interchangeable. Given any logic circuit with NAND gates, we can replace it by bubbled OR gates and converse is also true.

Universality of NAND Gate

 (^) NOT Gate from NOR Gate  (^) AND gate from NAND Gate  (^) OR Gate from NAND Gate

And-Or-Invert Gates (AOI)

 (^) Figure 1.31a shows an AND-OR circuit.  (^) Figure 1.31b shows the De Morgan equivalent circuit, a NAND-NAND network. In either case, the Boolean equation is Y = AB + CD  (^) AND-OR circuits are not easily derived from the basic NAND- gate design. But it is easy to get an ANDOR-INVERT circuit as in Fig. 1.31c.  (^) the output has the equation Y = (AB + CD)’

Positive and Negative Logic

 (^) In a positive logic system, binary 0 stands for low and binary 1 for high. (Truth Table 1.9)  (^) Note that Y is a 1 if either A or B is 1. This sounds like an OR gate. And it is, because we are using positive logic.

Positive and Negative Logic

 (^) In a negative logic system, binary 1 stands for low and binary 0 for high.  (^) The output Y is a 1 only when both A and B are 1. This sounds like an AND gate! And it is, because we are now using negative logic..

Points to Remember

 (^) Here are some ideas that you should try to remember:

  1. Positive true always represents a high voltage, and negative true always represents a low voltage.
  2. If possible, draw basic gates with bubbles on active-low signal lines.
  3. When a signal is active-low, use an overbar as a reminder that the signal voltage is negative true when the underlying statement is true.

Self Test

  1. Write the Boolean expression for a 2-input NOR gate.
  2. Write De Morgan’s first theorem.
  3. Write the Boolean expression for a 2 input NAND gate.
  4. Write De Morgan’s second theorem.
  5. When we speak of an AND-OR-INVERT gate, what is the meaning of 2-wide?
  6. What is negative logic?