SinBench
← All labs · Digital Logic Design · Free virtual lab

Lab 10.
Eight signals,
one wire.

On a 3D digital logic trainer, pick one of eight inputs with the 74151, send it down a single wire and steer it to one of eight outputs with the 74138. Then build a full adder and a full subtractor from multiplexers.

Read the concepts first →
741518-to-1 multiplexer
741381-to-8 demultiplexer
Any functionfrom a multiplexer
Before you start

Your details

Free to use, no sign up. Your name is only printed on your own lab sheet, and your work is saved in this browser so you can continue later. Nothing is sent to a server.

01
Read the concepts page and play with the multiplexer.
02
Wire the clock to a data input and watch the selected LED blink.
03
The tables use switches so every row can be recorded and carried onto your lab sheet.
Designed by
© 2026 Fasih Ullah Saleem. All rights reserved. · About · Terms of Use · Privacy
About this virtual lab

Multiplexer and Demultiplexer (74151, 74138)

This virtual lab is a 74151 multiplexer simulator on a 3D digital logic trainer with a real breadboard. Three select lines pick one of eight data inputs and send it to a single output. A 74138 then works as a demultiplexer and steers that one line back to one of eight outputs.

You also use multiplexers as general logic: a full adder and a full subtractor from 8 to 1 multiplexers, and any 3 variable function such as F = Σ(1, 2, 6, 7) by tying each data input to 0 or 1. Joining the multiplexer and the demultiplexer shows how many signals can share one wire.

Multiplexer and Demultiplexer (74151, 74138): the working 3D lab bench with its trainer and instruments
The bench of this lab, as it looks after you enter it.

What you do on this bench

  1. Wire the 74151 and select each of its eight inputs in turn.
  2. Build a full adder and a full subtractor from 8 to 1 multiplexers.
  3. Use the 74138 as a demultiplexer with the data on an enable input.
  4. Send data from the multiplexer to the demultiplexer over one wire.
  5. Make F(x, y, z) = Σ(1, 2, 6, 7) with one multiplexer.

On the bench

  • Digital logic trainer with 16 toggle switches, 16 LEDs, pulse switches, a clock and a two digit seven segment display
  • Full size breadboard with power rails and jumper wires that are wired pin by pin
  • Cabinet of TTL chips with real pinouts (7400 series)
  • Logic probe, multimeter and a binder of chip data sheets

Free, runs in the browser, no sign up and nothing to install. A computer with a graphics card gives the smoothest 3D view.

Questions students ask

How does a multiplexer make any function?

With the inputs of the function on the select lines, each data input stands for one row of the truth table. Tying it to 1 or 0 sets the output for that row.

How is a decoder used as a demultiplexer?

The data goes into an enable input and the select inputs choose the output. Only the chosen output follows the data; the others stay at their inactive level.

Where are multiplexers used?

Wherever several signals must share one path: data selectors in processors, time division multiplexing in communication links and input selection in measuring instruments.