Design a Multiplexer
Build a digital traffic director to route multiple incoming signals safely down a single bus.
What is a Multiplexer (MUX)?
A multiplexer is effectively a highly complex digital train switch track. Imagine having four different data streams (like four separate network connections), but you only own a single output wire into your processor.
You strictly need a mechanism allowing you to specify exactly which feed selectively passes through the output wire while completely discarding the ambient noise of the others.
Data Funneling
A massive 2-to-1 multiplexer exclusively selects streams via a single Selector variable.
- If Selector =
0, onlyChannel 0data survives. - If Selector =
1, the internal AND gates forcibly severChannel 0, and exclusively pipeChannel 1.
Use the Selector Switch in the middle of our visual diagram below to change which stream lights up the backend!
| Selector | Channel 0 | Channel 1 | Output |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 |