This is an old revision of this page, as edited by 88.73.114.6 (talk) at 09:01, 20 September 2006 (Layout). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 09:01, 20 September 2006 by 88.73.114.6 (talk) (Layout)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff) "MUX" redirects here. For other uses, see MUX (disambiguation).A multiplexer (or mux or, more rarely, muldex) is a device that encodes or multiplexes information from two or more data sources into a single channel. They are used in situations where the cost of implementing separate channels for each data source is more expensive than the cost and inconvenience of providing the multiplexing/demultiplexing functions. In a physical analogy, consider the merging behaviour of commuters crossing a narrow bridge; vehicles will take turns using the few available lanes. Upon reaching the end of the bridge they will separate into separate routes to their destinations.
In electronics, the multiplexer combines several electrical signals into a single signal. There are different types of multiplexers for analog and digital circuits.
In digital signal processing, the multiplexer takes several separate digital data streams and combines them together into one data stream of a higher data rate. This allows multiple data streams to be carried from one place to another over one physical link, which saves cost.
At the receiving end of the data link a complementary demultiplexer or demux is normally required to break the high data rate stream back down into the original lower rate streams. In some cases, the far end system may have more functionality than a simple demultiplexer and so, whilst the demultiplexing still exists logically, it may never actually happen physically. This would be typical where a multiplexer serves a number of IP network users and then feeds directly into a router which immediately reads the content of the entire link into its routing processor and then does the demultiplexing in memory from where it will be converted directly into IP packets.
It is usual to combine a multiplexer and a demultiplexer together into one piece of equipment and simply refer to the whole thing as a "multiplexer". Both pieces of equipment are needed at both ends of a transmission link because most communications systems transmit in both directions.
A real world example is the creation of telemetry for transmission from the computer/instrumentation system of a satellite, space craft or other remote vehicle to a ground system.
In analogue circuit design, a multiplexer is a special type of analogue switch that connects one signal selected from several inputs to a single output.
Digital multiplexers
In digital circuit design, the multiplexer is a device that has multiple input streams and only one output stream. It forwards one of the input streams to the output stream based on the values of one or more "selection inputs" or control inputs. For example, a two-input multiplexer is a simple connection of logic gates whose output C is either input A or input B depending on the value of a third input S which selects the input.
These are both realizations of a single bit 4-to-1 line multiplexer - one realized from a decoder, AND gates, and an OR gate - and the other realized from 3-state buffers and AND gates (the AND gates are acting as the decoder in the second case). Note that the subscripts on the In inputs indicate the decimal value |
Its boolean equation is:
Which can be expressed as the truth table:
1 | 1 | 1 | 0 | 1 | 1 |
1 | 1 | 0 | 1 | 0 | 1 |
1 | 0 | 1 | 0 | 0 | 0 |
1 | 0 | 0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 | 1 | 1 |
0 | 1 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 |
Larger multiplexers are also common. For example, an 8-input multiplexer has eight data inputs and three selection inputs. The data inputs are numbered X0 through X7, and the selection inputs are numbered S4, S2, and S1. If S4 and S1 are true, and S2 is false, for example, the output will be equal to X5. S1 is sometimes called the "most significant" input, with less "significant" inputs to the right of it. The farther left the input it the more "significant" it is. This order is a convention intended to match with the standard ordering of a truth table.
Demultiplexers take one data input and a number of selection inputs, and they have several outputs. They forward the data input to one of the outputs depending on the values of the selection inputs. For example, an 8-output demultiplexer has one data input (X), three selection inputs (S4, S2, and S1), and eight data outputs (A0 through A7). If S4 and S1 are true, and S2 is false, for example, the output A5 will be equal to X, and all other outputs are equal to zero regardless of the value of X. Demultiplexers are sometimes convenient for designing general purpose logic, because if the demultiplexer's input is always true, the demultiplexer acts as a decoder. This means that any function of the selection bits can be constructed by logically OR-ing the correct set of outputs.
See also
- barrel shifter
- MDM
- inverse multiplexer
- digital subscriber line access multiplexer (DSLAM)
- multiplexing