LearnViz CompSci
Home / Learn / Computer Architecture & Logic / Multiplexers

Beginner Topic 12 of 51 Computer Architecture & Logic

Multiplexers

Circuits selecting one of many inputs using control lines.

How it works

A multiplexer, or mux, selects one of several data inputs and forwards it to a single output according to select lines; with n select bits it chooses among 2 to the power n inputs. It acts as a hardware switch or an if-else in a circuit, and a demultiplexer does the reverse. Any Boolean function of n variables can be implemented with a 2 to the n minus 1 input mux.

Where it is used

Choosing between ALU operations, selecting register file outputs, routing data between buses, implementing lookup tables in FPGAs and time-sharing communication lines use multiplexers.

Common pitfall

Wrong select-line encoding or ordering routes the wrong input. Large multiplexers add delay and area, and glitches can occur while select signals change. Build wide multiplexers as trees of smaller ones, and remember the inputs are not combined, only one is passed through at a time.

Where it fits in the course

Multiplexers is topic 12 of 51 in Computer Architecture & Logic, rated Beginner. It follows Adders. The next topic is Flip-Flops.

Practice and explore

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Computer Architecture & Logic quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is Multiplexers?
Circuits selecting one of many inputs using control lines. It belongs to Computer Architecture & Logic and is a beginner-level topic.
Where do people use Multiplexers?
Choosing between ALU operations, selecting register file outputs, routing data between buses, implementing lookup tables in FPGAs and time-sharing communication lines use multiplexers.
What is the most common mistake with Multiplexers?
Wrong select-line encoding or ordering routes the wrong input.
What should I learn before this topic?
Start with Adders, the topic just before it in Computer Architecture & Logic.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Computer Architecture & Logic quiz. You can also explore Logic Gates in the Visual Lab.
Is Multiplexers hard to learn?
It is a Beginner topic, so it works as an entry point. If the terms are new, read the explanation twice and try the visualizer before the quiz.
How long does it take to learn Multiplexers?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Multiplexers?
Adders, Flip-Flops, Combinational Circuits are closely connected. The full list is in the related topics section of this page.
What should I study after Multiplexers?
Continue with Flip-Flops, the next topic in Computer Architecture & Logic.

Related topics