Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksBuild a CPUToolsOpen the lab →

4:1 mux using transmission gates: 16-transistor circuit, live

A 4-to-1 multiplexer can be built from six transmission gates arranged as a tree: four on the first level, steered by S0, pick D0 or D1 and D2 or D3, and two on the second level, steered by S1, pick between those results. With two inverters for S0' and S1' that is 16 transistors, against dozens for a mux built from NAND gates.

A transmission gate is an NMOS and a PMOS transistor in parallel, driven by complementary signals, so it passes both a strong 0 and a strong 1 when it is on and disconnects when it is off. A pair of them on S and S' is a 2-to-1 mux: exactly one conducts, so the output is never left floating. The 4-to-1 mux reuses that pair three times. On the first level, S0 = 0 connects D0 and D2 to the two intermediate nodes and S0 = 1 connects D1 and D3. On the second level, S1 = 0 connects the D0/D1 node to Y and S1 = 1 the D2/D3 node. The selected input reaches Y through two transmission gates in series, which is why larger pass-transistor trees are usually broken up with buffers: each switch adds resistance and slows the signal. Only the two inverters are tied to the supply. The 2-to-1 version is the transmission gate mux, a single gate is the transmission gate, and the same tree built from logic gates is the 4-to-1 mux from 2-to-1 muxes.

Big circuit: pinch, scroll or tap + to zoom in, then drag to move around.

Live circuit: click the inputs to toggle them and watch the outputs update. It runs the real simulator, right here on the page.

Open this circuit in the lab →

Embed or cite this circuit

Free to embed on a course page, blog or worksheet: paste this code. The circuit stays live, and the small digiwleea badge links back here.

To cite it: digiwleea, “4-to-1 mux from transmission gates”, https://digiwleea.wleeaf.dev/tools/build/transmission-gate-mux-4to1/

What you need

Step by step

  1. Place inputs D0 to D3, S1 and S0, a probe Y, and VDD and GND for the two inverters.
  2. Invert S0 and S1 with two CMOS inverters.
  3. First level: transmission gates pass D0 when S0 = 0 and D1 when S0 = 1 onto one node, and D2 or D3 onto a second node the same way.
  4. Second level: a transmission gate passes the first node to Y when S1 = 0, and another passes the second node when S1 = 1.
  5. Set S1 S0 to 00, 01, 10 and 11 and toggle the selected data input: Y follows it.

4:1 transmission gate mux: which path conducts

S1S0First level onSecond level onY
00D0 and D2 gatesD0/D1 nodeD0
01D1 and D3 gatesD0/D1 nodeD1
10D0 and D2 gatesD2/D3 nodeD2
11D1 and D3 gatesD2/D3 nodeD3

All 64 combinations of the four data inputs and two selects are checked on the live circuit before the page is built, and the circuit is transistors only.

You can also read the full theory in the lesson on the transmission gate. Prefer to build it yourself from scratch? Open the digiwleea lab and place the gates on the canvas, or start from the logic gate simulator.

More builds: Gates from transistors (CMOS)

All 246 build guides, by topic

Each of these is one step from a transistor to a working CPU. Build every gate from CMOS transistors and work all the way up in the free digiwleea lab, with the free theory reference alongside.

Open the 4-to-1 mux from transmission gates in the lab →

Frequently asked

How do you design a 4:1 mux using transmission gates?

Build a tree of 2-to-1 transmission gate muxes: four transmission gates controlled by S0 and S0' choose D0 or D1 and D2 or D3, then two more controlled by S1 and S1' choose between those two results. Two inverters make S0' and S1'.

How many transistors are in a 4:1 transmission gate mux?

Sixteen: six transmission gates of two transistors each, plus two CMOS inverters for S0' and S1'.

Why use transmission gates instead of single NMOS pass transistors?

An NMOS pass transistor passes a strong 0 but a weak 1, and a PMOS the opposite. With both in parallel, a transmission gate passes full 0 and 1 levels.

What are the drawbacks of transmission gate logic?

The inputs drive the output through the switches, so each gate in series adds resistance and delay, and the signal is not restored. Long chains are broken up with buffers or inverters.