Implement a 2-input AND gate using NMOS transistors so that output Y becomes HIGH only when both inputs are HIGH.
Constraints
Behavioral Reference
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Logic gates are physically implemented using transistor switches. A transistor network creates a path either toward the supply or toward ground, producing logic 1 or logic 0.
Note: The circuits shown are simplified for learning; practical IC implementations may use optimized transistor networks.

Series: all transistors must be ON. Parallel: any ON branch can complete the path.

For resistor-loaded pull-down logic:
CMOS uses a complementary pull-up network with the opposite series/parallel arrangement.
Y = A'NMOS inverter: A = 0 turns the NMOS OFF and the resistor pulls Y=HIGH; A = 1 turns the NMOS ON and pulls Y=LOW. CMOS uses complementary PMOS pull-up and NMOS pull-down devices.

Y = (A · B)'Resistor-loaded NMOS NAND uses two NMOS transistors in series. CMOS NAND uses parallel PMOS devices in the pull-up network and series NMOS devices in the pull-down network.

Y = (A + B)'Resistor-loaded NMOS NOR uses parallel NMOS pull-down branches. CMOS NOR uses series PMOS devices in the pull-up network and parallel NMOS devices in the pull-down network.

X = (A · B)' → Y = X' = A · BA NAND stage followed by an inverter produces AND.

X = (A + B)' → Y = X' = A + BA NOR stage followed by an inverter produces OR.

Y = A ⊕ B = A' · B + A · B'XOR is HIGH when the inputs are different. The shown static CMOS circuit first generates A' and B', then uses complementary pull-up and pull-down paths in the XOR core.

Y = (A ⊕ B)' = A · B + A' · B'XNOR is HIGH when the inputs are equal. It can be implemented as a complementary CMOS network or by inverting an XOR output.

The same Boolean function can be implemented using different transistor logic families.
| Logic Family | Devices Used | Basic Principle |
|---|---|---|
| RTL | BJTs + resistors | BJT switching with resistive load |
| TTL | BJTs | Multiple BJT stages perform logic and active output driving |
| MOS Logic | NMOS or PMOS + load | One MOSFET type forms the switching network |
| CMOS | NMOS + PMOS | Complementary pull-up and pull-down networks |
In a simple NPN RTL inverter, the resistor pulls Y HIGH when the transistor is OFF, while the NPN transistor pulls Y LOW when it turns ON.

TTL uses BJTs for both logic processing and active output driving. The shown teaching circuit uses separate input transistors Q1A and Q1B, a phase-splitter Q2, and a totem-pole output stage Q3–Q4.
Y = (A · B)'
Note: Classic TTL NAND gates normally use a multi-emitter input transistor. This simplified teaching circuit uses separate input transistors to represent the input stage.