Selecting an Input with a Multiplexer
A multiplexer connects one selected data input to a shared output. Select lines encode which input the logic delivers.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a two-input mux
Suppose input A is zero and B is one. A selector of zero can choose A, giving zero. A selector of one chooses B, giving one. This is a hardware analogue of a conditional expression.
Keep control and data separate
Changing the selector may change the output even when both data inputs remain fixed. If A and B both equal one, changing the selector changes no steady-state output. A truth table can verify both select settings with differing data.[1]
Use a selector value that detects input order
In a four-way multiplexer, suppose input values are 9, 4, 7 and 2. If selector bits encode ordinary binary indices, selector 10 takes input two and returns seven. Reversing the selector bits would instead pick input one. See reading binary integers.
Selector Input Value
00 D0 9
01 D1 4
10 D2 7
11 D3 2
Decide which signals are replicated across a wider value
Selecting a four-bit data word can use one selector controlling the same choice for every data bit. Give each input a distinct pattern during testing so swapped input positions and crossed bit channels produce visible errors.