Second Semester_Digital Logic_Logic Gates and Boolean Algebra

 

2.1 Basic Definition of Boolean Algebra

  • Boolean Algebra: A mathematical system for analyzing and simplifying logic circuits.

  • Values are binary: 0 (False) and 1 (True).

  • Operations follow specific rules and laws.


2.2 Basic Theory of Boolean Algebra, Boolean Functions, Logical Operations

  • Boolean Functions: Functions that take binary inputs and produce a binary output.

    • Example: F(A, B) = A·B + A'·B

  • Logical Operations:

    1. AND (·): Output 1 if all inputs are 1.

    2. OR (+): Output 1 if at least one input is 1.

    3. NOT (’): Output is the complement of input.


2.3 Logic Gates, IC Digital Logic Families. Basic Gates

  • Logic Gates: Hardware implementation of Boolean operations.

    • AND, OR, NOT gates

  • Digital Logic Families: Types of IC technologies:

    • TTL (Transistor-Transistor Logic)

    • CMOS (Complementary MOS)

    • ECL (Emitter-Coupled Logic)


2.4 Universal Gates (NAND and NOR), Other Gates (XOR, XNOR)

  • Universal Gates: Can implement any Boolean function.

    • NAND gate

    • NOR gate

  • Other Gates:

    • XOR (Exclusive OR): Output 1 if inputs are different.

    • XNOR (Exclusive NOR): Output 1 if inputs are the same.


2.5 Boolean Identities, De Morgan’s Laws

  • Boolean Identities: Rules to simplify expressions. Examples:

    • A + 0 = A, A·1 = A, A + A = A, A·A = A

  • De Morgan’s Laws: Convert AND ↔ OR with complements:

    1. (A·B)’ = A’ + B’

    2. (A + B)’ = A’·B’

🔹 Basic Logic Gates

1. NOT Gate (Inverter)

  • Equation: Y=AY = \overline{A}

  • Truth Table:

    • A=0Y=1A=0 \Rightarrow Y=1

    • A=1Y=0A=1 \Rightarrow Y=0


2. AND Gate

  • Equation: Y=ABY = A \cdot B (sometimes written as ABAB)

  • Truth Table:

    • 00=00 \cdot 0 = 0

    • 01=00 \cdot 1 = 0

    • 10=01 \cdot 0 = 0

    • 11=11 \cdot 1 = 1


3. OR Gate

  • Equation: Y=A+BY = A + B

  • Truth Table:

    • 0+0=00+0 = 0

    • 0+1=10+1 = 1

    • 1+0=11+0 = 1

    • 1+1=11+1 = 1


🔹 Universal Gates

4. NAND Gate (NOT-AND)

  • Equation: Y=ABY = \overline{A \cdot B}

  • Truth Table:

    • 00=010 \cdot 0 = 0 \Rightarrow 1

    • 01=010 \cdot 1 = 0 \Rightarrow 1

    • 10=011 \cdot 0 = 0 \Rightarrow 1

    • 11=101 \cdot 1 = 1 \Rightarrow 0


5. NOR Gate (NOT-OR)

  • Equation: Y=A+BY = \overline{A + B}

  • Truth Table:

    • 0+0=010+0 = 0 \Rightarrow 1

    • 0+1=100+1 = 1 \Rightarrow 0

    • 1+0=101+0 = 1 \Rightarrow 0

    • 1+1=101+1 = 1 \Rightarrow 0


🔹 Exclusive Gates

6. XOR (Exclusive-OR)

  • Equation: Y=AB=AB+ABY = A \oplus B = A\overline{B} + \overline{A}B

  • Truth Table:

    • 00=00 \oplus 0 = 0

    • 01=10 \oplus 1 = 1

    • 10=11 \oplus 0 = 1

    • 11=01 \oplus 1 = 0


7. XNOR (Exclusive-NOR / Equivalence)

  • Equation: Y=AB=AB+ABY = \overline{A \oplus B} = AB + \overline{A}\,\overline{B}

  • Truth Table:

    • 0 XNOR 0=10 \text{ XNOR } 0 = 1

    • 0 XNOR 1=00 \text{ XNOR } 1 = 0

    • 1 XNOR 0=01 \text{ XNOR } 0 = 0

    • 1 XNOR 1=11 \text{ XNOR } 1 = 1


✅ Summary Table (Equations Only)

GateSymbolEquation
NOTA\overline{A}Inverts input
ANDABA \cdot BOutputs 1 if both are 1
ORA+BA + BOutputs 1 if any is 1
NANDAB\overline{A \cdot B}Inverse of AND
NORA+B\overline{A + B}Inverse of OR
XORAB=AB+ABA \oplus B = A\overline{B} + \overline{A}BOutputs 1 if inputs differ
XNORAB=AB+AB\overline{A \oplus B} = AB + \overline{A}\,\overline{B}Outputs 1 if inputs are same

Comments

Popular posts from this blog

Third Semester_Web Technology_Quesiton Answer