26. PNP NAND Gate

Implement a 2-input NAND gate using PNP transistors so that output Y becomes LOW only when both inputs are HIGH.

Constraints

  • Inputs: A, B
  • Output: Y
  • Supply: 5 V
  • Use PNP transistors and resistors.
  • Do not use NPN transistors, MOSFETs, diodes, switches, or ready-made logic gates.

Behavioral Reference

ABY
001
011
101
110
Need Help? Refer to the Quick Guide below

Transistors behave like controlled switches. A logic output is determined by whether the transistor network connects Y to VDD or ground.

1. Basic Concept

TransistorTurns ON forUsually connects Y toward
NPNHIGH inputGround
NMOSHIGH inputGround
PNPLOW inputVDD
PMOSLOW inputVDD

Remember:

NPN / NMOS → Active HIGH

PNP / PMOS → Active LOW

BJT and MOSFET Inverter Circuits Comparison:

Schematic comparison of NPN, PNP, NMOS, and PMOS transistor inverter and buffer configurations."

2. Read the Output Path

Pull-down logic

VDD → Pull-up resistor → Y → NPN/NMOS network → Ground

  • Network conducts → Y = 0
  • Network is open → Y = 1
NMOS transistor inverter logic gate schematic diagram with pull-up resistor.

Pull-up logic

VDD → PNP/PMOS network → Y → Pull-down resistor → Ground

  • Network conducts → Y = 1
  • Network is open → Y = 0
PMOS transistor buffer logic schematic diagram with pull-down resistor.

3. Resistor-Loaded Gate Reference

Device networkNOTNANDNOR
NPN / NMOS pull-downOne transistorSeriesParallel
PNP / PMOS pull-upOne transistorParallelSeries

Key expressions

NOT:  Y = A'

NAND: Y = (A · B)'

NOR:  Y = (A + B)'

NMOS and PMOS Basic Logic Gate Implementations (NOT, NAND, NOR):

Schematic comparison of basic NMOS and PMOS logic gates including NOT, NAND, and NOR configurations.

4. Building AND and OR

A resistor-loaded transistor stage commonly produces NAND or NOR. Add an inverter to obtain AND or OR.

AND

A, B → NAND stage → X → Inverter → Y

X = (A · B)'

Y = X' = A · B

OR

A, B → NOR stage → X → Inverter → Y

X = (A + B)'

Y = X' = A + B

For example, Two-Stage AND Gate (using NAND and NOT):

2-input RTL BJT NAND and AND logic gate schematic diagram with dual outputs.

5. CMOS Logic

CMOS uses two complementary transistor networks.

  • PMOS Pull-Up network connects Y to VDD
  • NMOS Pull-Down network connects Y to ground
  • Their series and parallel arrangements are opposite

 

2-input CMOS NAND logic gate transistor schematic diagram.

CMOS inverter

APMOSNMOSY
0ONOFF1
1OFFON0
Standard CMOS inverter logic gate transistor schematic diagram.

CMOS NAND and NOR

GatePMOS networkNMOS network
NANDParallelSeries
NORSeriesParallel
2-input CMOS NAND and NOR logic gate transistor schematic comparison.

6. Three-Input Gates

GatePMOS arrangementNMOS arrangement
3-input NANDParallelSeries
3-input NORSeriesParallel

3-input NAND: Y = (A · B · C)'

3-input NOR:  Y = (A + B + C)'

3-input CMOS NAND and NOR logic gate transistor schematic comparison.

7. XOR and XNOR

ABXORXNOR
0001
0110
1010
1101

XOR

HIGH when inputs are different.

Y = A' · B + A · B'

XNOR

HIGH when inputs are equal.

Y = A' · B' + A · B

CMOS transistor-level XOR and XNOR logic gate schematic diagram with complementary outputs.

 8. BJT and CMOS Comparison

FeatureBJT LogicCMOS Logic
Input controlBase currentGate voltage
Main devicesNPN and PNPNMOS and PMOS
Static powerUsually higherUsually lower
Input resistanceLowerVery high
Circuit structureResistors and transistorsComplementary transistor networks
Common useDrivers and simple gatesDigital ICs and processors