Skip to content
Tactiverge

Learning Rooms/○ Level 3 · Innovator/Electronics

Making logic gates from transistors

Ben Eater · 13 min 1 s · captions on YouTube · nothing loads until you press play

By the end you can…

  • Model nMOS and pMOS transistors as voltage-controlled switches.
  • Build a CMOS inverter, NAND and NOR from pull-up and pull-down networks.
  • Explain why CMOS draws almost no static current.
?Predict▶Watch✓Practise⚙Build

Watch it all: no segment has been checked by hand for this video yet.

1.Predict before you press play

In a CMOS NAND gate, how are the two nMOS transistors in the pull-down network connected?

Pick one before you press play. A wrong guess is fine: it is what makes the video stick.

2.See the idea first

Play with this diagram for a minute. It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

In the gate builder, the inverter's output is 1 when A = 0 (pMOS on) and 0 when A = 1 (nMOS on). The NAND output is 0 only for A = B = 1, when both series nMOS conduct; the NOR output is 1 only for A = B = 0, when both series pMOS conduct. In every case exactly one network conducts.

3.Watch, actively

Builds real logic gates from transistors on a breadboard, linking abstract logic to actual electronics.

13 min 1 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Ben Eater uses bipolar transistors, not MOSFETs, but watch for the same idea: switches in series make AND-like behaviour, in parallel OR-like.

Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.

Can't stream it? Read the idea instead

A transistor can act as a switch controlled by a voltage. Two switches in series conduct only when both are on, which gives AND-like behaviour; in parallel either one is enough, which gives OR-like behaviour. Every logic gate is built from arrangements like these.

What the video covers (our own note, written when we verified it): Builds real logic gates from transistors on a breadboard, linking abstract logic to actual electronics.

Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.

Jot down one thing that surprised you and one question you still have.

Private: saved only on this device, never sent to Tactiverge.

4.Practise what you just saw

These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.

Practice 1 · a fresh version every time

A static CMOS gate with inputs A and B is built from two nMOS in series in the pull-down network and two pMOS in parallel in the pull-up network. Write its output Y for AB = 00, 01, 10, 11 as a 4-bit binary number (Y for 00 is the leftmost bit) and give that number in decimal.

Practice 2

A student wires both networks of a gate so that, for input 11, both conduct. What happens?

Practice 3 · a fresh version every time

A static CMOS gate with inputs A and B is built from a NOR stage (parallel nMOS, series pMOS) followed by a CMOS inverter. Write its output Y for AB = 00, 01, 10, 11 as a 4-bit binary number (Y for 00 is the leftmost bit) and give that number in decimal.

Practice 4

A pMOS transistor conducts when its gate is…

6.Build something with it

Follow-up project

Sketch a CMOS gate for Y = NOT(A·B + C) using one pull-down network (A and B in series, that pair in parallel with C) and its dual pull-up. Check all 8 rows of the truth table.

Open BUILD 008: Create a Virtual Computer →

Where this video lives

In the course catalogue: ARCH-410 From transistors to logic

The video is by Ben Eater, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.