290 likes | 548 Views
Lecture No. 7. Computer Logic Design Logic Gates. NAND Gate. Contraction of NOT-AND Standard logic symbol Output is LOW only when all inputs are HIGH Bubble indicates ACTIVE LOW output Output level is opposite to that of the AND gate. E. NAND Gate.
E N D
Lecture No. 7 Computer Logic Design Logic Gates
NAND Gate • Contraction of NOT-AND • Standard logic symbol • Output is LOW only when all inputs are HIGH • Bubble indicates ACTIVE LOW output • Output level is opposite to that of the AND gate E
NAND Gate • The truth table for a two input NAND gate
NAND Gate • Timing diagram of NAND gate
NAND Gate • NAND gate application example • Device Failure Alarm System • When all the fans are working, the input to the NAND gate is 111 and the output is 0 • If any one of the fan stops working, the output of the NAND gate becomes 1, which activates the alarm
NAND Gate as Negative-OR • The truth table for a two input NAND gate looks awfully similar to an OR gate with the inputs inverted.
Bubble signifies ACTIVE LOW INPUT NAND Gate as Negative-OR
NAND Gate as a Universal Gate • NAND gate can be used to perform all the fundamental gate operations (NOT, AND, OR) • Universal NAND gate
NAND as NOT Gate Join all the input pins of the NAND gate together
NAND as AND Gate • Using NAND gate to perform the AND gate operation • Remember NAND is NOT-AND. What if we inverse this one more level? NOT-(NOT-AND) = AND • Accomplished by applying a NOT operation (implemented through NAND gate) to the output of the NAND gate
NAND as OR Gate • Using NAND gate to perform the OR gate operation • Can we form NOR gate as well?
NOR Gate • Contraction of NOT-OR • The standard logic symbol • Produces a LOW output when one or more of its input is HIGH • Bubble indicates ACTIVE LOW output • The output logic is opposite to that of the OR gate
NOR Gate • Truth table for a two input NOR gate
NOR Gate • Timing diagram of a NOR gate
NOR Gate as Negative-AND • The truth table for a two input NOR gate looks awfully similar to an AND gate with the inputs inverted.
Bubble signifies ACTIVE LOW INPUT NOR Gate as Negative-AND
NOR Gate as a Universal Gate • NOR gate can be used to perform all the fundamental gate operations (NOT, AND, OR) • Universal NOR gate
NOR as NOT Gate Join all the input pins of the NOR gate together
NOR as OR Gate • Using NOR gate to perform the OR gate operation • Remember NOR is NOT-OR. What if we inverse this one more level? NOT-(NOT-OR) = OR • Accomplished by applying a NOT operation (implemented through NOR gate) to the output of the NOR gate
NOR as AND Gate • Using NOR gate to perform the AND gate operation • Can we form NAND gate as well?
XOR Gate • Exclusive OR (XOR for short) • Standard logic symbol • This gate has only two inputs • Logical expression • The output is HIGH only when the two the inputs are at opposite logic level
XOR Gate • The truth table for XOR Gate
XOR Gate • Timing diagram of XOR gate
XNOR Gate • Exclusive-NOR (XNOR for short) • Standard logic symbol This gate has only two inputs • Logical expression • The output is LOW only when the two inputs are at opposite logic level
XNOR Gate • Truth table for XNOR gate
XNOR Gate • Timing diagram of XNOR gate
Summary of logic gates • Fundamental logic gates • AND • OR • NOT • Universal gates • NAND • NOR • Other gates • XOR • XNOR • Standard logic symbol • Logical/Boolean expression • Truth table • Application example