Second Semester_Digital Logic_Basic Logic Gates

🔹 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