22. Transistor Level Logic Gates

Question.4

Determine the Boolean expression implemented at output Y.

Schematic diagram of a 3-input NMOS AND-OR-Invert (AOI21) logic gate featuring transistor N1 in series with parallel transistors N2 and N3, connected to a 1k ohm pull-up resistor to 5V, with inputs A, B, C and output Y.
Need Help? Refer to the Quick Guide below

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.

How Transistors Create Logic

Pull-Up and Pull-Down Paths

  • Pull-up connects Y toward VCC/VDD → 1.
  • Pull-down connects Y toward ground → 0.
Transistor pull-up and pull-down paths.

Series and Parallel Connections

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

Series and Parallel transistor networks.

For resistor-loaded pull-down logic:

  • series NPN/NMOS → NAND behavior;
  • parallel NPN/NMOS → NOR behavior.

CMOS uses a complementary pull-up network with the opposite series/parallel arrangement.

Basic Transistor Logic Gates

NOT Gate

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.

Resistor-loaded NMOS inverter and CMOS inverter.

NAND Gate

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.

Resistor-loaded NMOS NAND and CMOS NAND.

NOR Gate

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.

Resistor-loaded NMOS NOR and CMOS NOR.

Derived Logic Gates

AND Gate

X = (A · B)'   →   Y = X' = A · B

A NAND stage followed by an inverter produces AND.

AND gate using CMOS transistors.

OR Gate

X = (A + B)'   →   Y = X' = A + B

A NOR stage followed by an inverter produces OR.

OR gate using CMOS transistors.

Exclusive Logic Gates

XOR Gate

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.

CMOS XOR using an input-inverter stage and complementary XOR core.

XNOR Gate

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.

CMOS XNOR using complementary input signals and a static CMOS core.

Transistor Logic Families

The same Boolean function can be implemented using different transistor logic families.

Logic FamilyDevices UsedBasic Principle
RTLBJTs + resistorsBJT switching with resistive load
TTLBJTsMultiple BJT stages perform logic and active output driving
MOS LogicNMOS or PMOS + loadOne MOSFET type forms the switching network
CMOSNMOS + PMOSComplementary pull-up and pull-down networks

RTL Example

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.

RTL inverter using an NPN transistor and pull-up resistor.

TTL Example

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.

  • If A = 0 or B = 0, the pull-down output path is not activated and the output is driven HIGH.
  • If A = 1 and B = 1, Q2 drives the pull-down transistor ON and the output becomes LOW.
Y = (A · B)'
Simplified two-input TTL NAND gate.

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.

 

 

 

Select Answer

Restart quiz!