Write expressions and identify symbols for NAND, NOR, XOR and XNOR. Objective 3 Objective 4 Construct and interpret their truth tables. Compare the four gates using output conditions. Objective 5 Objective 6 Explain why NAND and NOR are universal gates. Implement NOT, AND and OR using NAND/NOR. 2
gates AND OR NOT Output = 1 only when all inputs are 1. Output = 1 when at least one input is 1. Output is the complement of the input. Y=A·B Y=A+B Y = A′ 3
or complementing basic operations Core idea NAND Derived gates extend the basic AND, OR and NOT operations. Y = (A·B)′ Common derived gates: • NAND • NOR • XOR • XNOR NOR Y = (A+B)′ XOR Y=A⊕B XNOR Y = (A ⊕ B)′ 4
set of basic logic functions NAND as a universal gate NOR as a universal gate Using only NAND gates, we can implement: Using only NOR gates, we can implement: • NOT • AND • OR • NOT • OR • AND Therefore, any Boolean function can be constructed using NAND gates. Therefore, any Boolean function can be constructed using NOR gates. Universal gate → complete logic implementation 10
NAND / NOR • Binary addition • Parity generation/checking • Data comparison • Equality detection • Digital comparators • Error-checking logic • Control logic • Memory/sequential circuits • General Boolean implementation Design Insight Universal gates are useful because a complete logic system can be built from a single gate family. 17