Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksToolsOpen the lab →

Pass transistor logic: a 2-to-1 mux from transmission gates

Pass transistor logic computes by steering signals through switches instead of building every output from the supply rails. The classic example is a 2-to-1 multiplexer from two transmission gates: S = 0 connects A to Y and S = 1 connects B to Y, using six transistors where a mux of NAND gates needs fourteen.

For each value of S exactly one transmission gate is on and the other is off, so one input always reaches Y and the output never floats. Only the inverter that makes NOT S is tied to the supply. Pass transistor logic saves transistors and is used for multiplexers, XOR gates and the data paths of latches, but it has costs: the output is only as strong as the input it passes, and a chain of switches gets slow, so designs add a buffer after a few stages. A single NMOS per input is smaller still but passes a weak 1, which is why CMOS uses the NMOS and PMOS pair. Compare the gate-level 2-to-1 multiplexer and the single transmission gate.

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 →

What you need

Step by step

  1. Place VDD, GND, inputs A, B and S, and a probe Y.
  2. Build a CMOS inverter on S to make NOT S.
  3. Transmission gate from A to Y: NMOS gated by NOT S, PMOS gated by S.
  4. Transmission gate from B to Y: NMOS gated by S, PMOS gated by NOT S.
  5. With S = 0, Y follows A; with S = 1, Y follows B.

Transmission gate multiplexer truth table

SABY
0000
0010
0101
0111
1000
1011
1100
1111

All eight rows are checked on the live circuit, which is made of transistors only, before the page is built. Y is always driven by one of the inputs, never floating.

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.

Build more parts from gates

half adderfull adderhalf subtractorfull subtractor2:1 multiplexer4:1 multiplexerXOR gate from NAND gates2-to-4 decoderSR latchD flip-flopJK flip-flopT flip-flop4-bit shift register4-bit ripple carry adderD latch1-to-4 demultiplexer4-bit magnitude comparator4-bit ring counter4-bit Johnson counter4-to-2 priority encoder4-bit synchronous counter3-to-8 decoder8-to-1 multiplexer4-bit carry lookahead adderhalf adder from NAND gates2-bit comparatorBCD to 7-segment decoder4-bit up/down counterdecade counter2-bit multiplier4-bit ALU4-bit array multiplierNOT, AND, OR and NOR from NANDNOT, OR, AND and XOR from NORfull adder from NAND gatesSR latch from NAND gatesparity generator and checker4-bit adder/subtractorBCD adder4-bit universal shift registermod-6 counter4-bit ripple counterbinary to Gray code converterhalf adder from NOR gatesfull adder from NOR gates4-bit register with parallel load1011 sequence detectorbinary to BCD converterD flip-flop from NAND gates1-bit ALUCMOS inverterCMOS NAND gateCMOS NOR gatePISO shift registerSR flip-flop from NAND gatesBCD to excess-3 code converterHamming (7,4) code encoder and correctortraffic light controller4-bit barrel shifterCMOS AND gateCMOS OR gateCMOS XOR gate1-bit magnitude comparatorhalf subtractor from NAND gatesfull subtractor from NAND gates8-to-3 encoderGray to binary converter4-to-16 decoderfull adder using 4:1 multiplexersedge detectorserial adder4-bit carry-select adderMealy machine (1011 detector)master-slave JK flip-flop (NAND)half subtractor from NOR gates1-to-8 demultiplexerexcess-3 to BCD code convertervending machine FSM4-bit carry-save adder3-bit synchronous counter (JK)CMOS transmission gatetri-state buffer (CMOS)mod-5 counterflip-flop conversion (JK to D)8-bit ALUdecimal to BCD encoderBCD to decimal decoder4-to-1 mux from 2-to-1 muxes

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 2-to-1 mux from transmission gates in the lab →

Frequently asked

What is pass transistor logic?

A logic style that uses transistors as switches to pass input signals to the output, instead of building each output from the supply rails as static CMOS gates do. It often needs fewer transistors.

What are the disadvantages of pass transistor logic?

The output is only as strong as the signal passed through, a single NMOS passes a weak 1, and a long chain of switches gets slow, so pass-transistor stages need buffers to restore the signal.

How many transistors does a transmission gate multiplexer need?

Six for a 2-to-1 mux: two per transmission gate and two for the inverter that makes NOT S. A 2-to-1 mux of NAND gates needs fourteen.

Why use transmission gates instead of single NMOS pass transistors?

A single NMOS cannot pass a full 1 because it turns off as its output nears the supply. Adding a PMOS in parallel, gated by the opposite signal, passes the 1 at full strength.