Implement a 2-input OR gate using PMOS transistors so that output Y becomes HIGH when either input is HIGH.
Constraints
Behavioral Reference
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Transistors behave like controlled switches. A logic output is determined by whether the transistor network connects Y to VDD or ground.
| Transistor | Turns ON for | Usually connects Y toward |
|---|---|---|
| NPN | HIGH input | Ground |
| NMOS | HIGH input | Ground |
| PNP | LOW input | VDD |
| PMOS | LOW input | VDD |
Remember:
NPN / NMOS → Active HIGH
PNP / PMOS → Active LOW
BJT and MOSFET Inverter Circuits Comparison:

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

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

| Device network | NOT | NAND | NOR |
|---|---|---|---|
| NPN / NMOS pull-down | One transistor | Series | Parallel |
| PNP / PMOS pull-up | One transistor | Parallel | Series |
Key expressions
NOT: Y = A'
NAND: Y = (A · B)'
NOR: Y = (A + B)'
NMOS and PMOS Basic Logic Gate Implementations (NOT, NAND, NOR):

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):

CMOS uses two complementary transistor networks.

CMOS inverter
| A | PMOS | NMOS | Y |
|---|---|---|---|
| 0 | ON | OFF | 1 |
| 1 | OFF | ON | 0 |

CMOS NAND and NOR
| Gate | PMOS network | NMOS network |
|---|---|---|
| NAND | Parallel | Series |
| NOR | Series | Parallel |

| Gate | PMOS arrangement | NMOS arrangement |
|---|---|---|
| 3-input NAND | Parallel | Series |
| 3-input NOR | Series | Parallel |
3-input NAND: Y = (A · B · C)'
3-input NOR: Y = (A + B + C)'

| A | B | XOR | XNOR |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
XOR
HIGH when inputs are different.
Y = A' · B + A · B'
XNOR
HIGH when inputs are equal.
Y = A' · B' + A · B

| Feature | BJT Logic | CMOS Logic |
|---|---|---|
| Input control | Base current | Gate voltage |
| Main devices | NPN and PNP | NMOS and PMOS |
| Static power | Usually higher | Usually lower |
| Input resistance | Lower | Very high |
| Circuit structure | Resistors and transistors | Complementary transistor networks |
| Common use | Drivers and simple gates | Digital ICs and processors |