# Implementing multiplexers with pass-transistor logic

This article describes the efficient multiplexers that can be created using MOSFET in a pass transistor configuration.

### support information

If you've read the previous articles on Step Transistor Logic (PTL), you know this approach to digital design is good and bad. In general, the bad outweighs the good, as evidenced by the preponderance of inverter-based logic in digital integrated circuits of all kinds.

However, we have seen that the pass-through transistor logic can really provide a significant reduction in transistor count, and when it comes to multiplexers, PTL really shines.

### The standard CMOS multiplexer

In a way, it is not surprising that PTL leads to efficient multiplexers. Multiplexing is different from basic boolean functions. When we deal with AND, OR, NOT, etc., we are using a logical gate to implement a logical function. That makes sense.

On the other hand, multiplexing is more like a toggle function that we could implement using logic gates because they are immediately available and do the job. In fact, they do the job, but not very efficiently: the door setup shown below seems quite awkward for a task as simple as selecting one of the two input signals, especially considering that each AND gate and OR gate of each inverter require six transistors

### The transmission gate multiplexer

In stark contrast to the inverter-based CMOS implementation, a 2-to-1 PTL multiplexer only requires six transistors: two for each two transmit gates and two for the inverter that provides the complement of the S signal (select).

Multiplexing is essentially a voltage controlled switching, and this type of functionality is so closely related to the operation of the pass transistor that the above circuit needs little explanation. Input signal A is connected to an active-low transmission gate, and input signal B is connected to an active-high transmission gate. When S is low, Y is equal to A; when S is high, Y is equal to B.

### A 4 to 1 PTL multiplexer

Pass-transistor multiplexers can be built using either transmission gates or the "lone NMOS" switch type. In terms of pure logical functionality, these are interchangeable: they both pass or block an input signal depending on the state of a control signal. However, if you have read the previous articles on PTL, you know that the transmission gate provides superior electrical performance.

The 4-to-1 multiplexer discussed in this section uses NMOS switches, mainly because the resulting diagram is simpler. Just remember that the NMOS transistor is more or less a placeholder for any type of pass / block element that is used in the actual circuit. In many cases, the preferred implementation will be a transmission gate, or if you want to experiment with these circuits in the lab, you could even replace the FETs with a MEMS relay or switch.

Here is my version of a 4-to-1 PTL multiplexer.

Since there are four input signals, we need a two-bit select signal. These two bits provide four possible binary numbers, and each number corresponds to one of the input signals. The presence (corresponding to high logic) or the absence (corresponding to low logic) of a reversal bar above the S signals can be used to translate the diagram into a functional description: