You are on page 1of 17

Transmission Gate Characteristics

enb

outp
(6/2)
in out
(6/2)
outn 1G

en

Figure 1. Transmission Gate Circuit for Simulation.

The transmissionn gate is on when en=5V and enb=0V, assuming the bulk of
PMOS is connected to VDD(=5V) and the bulk of NMOS is connected to GND(=0V). In
the on condition the output signal “out” will follows the input signal “in”. The operation
of each transistor will first be analyzed. The NMOS switch will be analyzed by
disconnecting the PMOS switch from the circuit. In Figure 1, the source is shown
connected to the input “in”, due to symmetrical structure of MOS transistor the source
and drain is not determined until the voltages are applied to the transistor. For NMOS the
drain is connected to a higher potential than the source. In Figure 1 when the switch is on,
the output V(out) follows the input V(in). That is, the V(out) is approximately equal but
slightly less than V(in). Therefore, the source is connected to the “out” and VDS=V(out)-
V(in)≅0. With a small VDS, the conducting NMOS transistor will be operating in the
ohmic or non-saturated region. The NMOS will remain conducting as long as the gate to
source voltage exceed the threshold voltage, VGS≥VT. Since the bulk is not connected to
the source, the bulk effect will increase the threshold voltage to about 1.5V. The
calculation of the threshold voltage will be shown later. As the input voltage V(in)
increases from 0 to 5V, the NMOS is on when VGS= V(en)-V(out)≅V(en)-V(in)=5-
V(in)≥1.5 or V(in)≤3.5V. That is the NMOS switch will shut off when V(in)≥3.5V. This
can be verified using Pspice simulation. In the Pspice coding, S and D is interchangeable.
The code is given in listing 1(a). The 1G load resistance is required by Pspice to prevent a
floating output node. Figure 2(a) shows the resistance value of the NMOS transistor as
the input swing from 0 to 5V. The resistance becomes infinite at about 3.5V. The
threshold voltage calculation will be illustrated. At V(in)=3.5V, the following voltages
are obtained:
VDS=V(in)-V(out)≅0 = > V(in)≅V(out)=VS=3.5
VGS=VG-VS=5-3.5=1.5
VBS=VB-VS=0-3.5=-3.5

The following parameters are obtained from scna20orbit level 2 spice parameter file:
VTON=VTO=0.8630

1
γ=GAMMA=0.4374
φ=PHI=0.6

VTN = VT0N + γ ( φ −V BS ) ( )
− φ = 0.8630 + 0.4374 0.6 − (−3.5) − 0.6 = 1.4098

This voltage is very closed to the assume threshold voltage of 1.5V.

The PMOS switch can be analyzed in a similar manner. For PMOS the drain is
connected to lesser voltage than the source. That is, in Figure 1, the drain of PMOS is
actually connected to “out”. Again VDS=V(out)-V(in)≅0. |VGS|=|V(enb)-V(in)|=|0-
V(in)|=V(in)≥|VT|=|-1.5|=1.5. That is, the PMOS switch is on as long as V(in)≥1.5. It
turns off when V(in)≤1.5. This can be verified with Pspice simulation. Listing 1(b) shows
the code. Figure 2(b) shows the on resistance of PMOS, which becomes infinite at about
V(in)=1.5V. The threshold voltage calculation will be illustrated. At V(in)=1.5V, the
following voltages are obtained:
VDS=V(out)-V(in)≅0 = > V(out)≅V(in)=VS=1.5
VGS=VG-VS=0-1.5=-1.5
VBS=VB-VS=5-1.5=3.5

The following parameters are obtained from scna20orbit level 2 spice parameter file:
VTON=VTO=-0.9629
γ=GAMMA=0.618
φ=PHI=0.6

VTP = VT0P − γ ( φ −VBS ) ( )


− φ = −0.9629 − 0.618 0.6 + 3.5) − 0.6 = −1.7355
This calculated agrees closely with the simulated result shown in Figure 2(b).

Figure 2(a) The On Resistance of the NMOS Transistor, Ronn.

2
Figure 2(b) The On Resistance of the PMOS Transistor, Ronp.

Figure 2(c ) The Transmission Gate On Resistance Ron.

3
LISTING 1:
* tgate circuit
*Filename=tg_res.cir"

*Listing 1(a)
.LIB C:\e595\lib\mypspice.lib
VDD vdd 0 DC 5
VSS vss 0 DC 0
VIN in 0 DC 0V
Ven en 0 DC 5V
*Venb enb 0 DC 0V

*MP1 out enb in vdd CMOSP W=6U L=2U


MN1 outn en in vss CMOSN W=6U L=2U

RLn outn 0 1G

.DC VIN 0 5V .01


.PROBE
.END

*Listing 1(b).
LIB C:\e595\lib\mypspice.lib
VDD vdd 0 DC 5
VSS vss 0 DC 0
VIN in 0 DC 0V
*Ven en 0 DC 5V
Venb enb 0 DC 0V

MP1 outp enb in vdd CMOSP W=6U L=2U


*MN1 out en in vss CMOSN W=6U L=2U

RLp outp 0 1G

.DC VIN 0 5V .01


.PROBE
.END

*Listing 1(c )
.LIB C:\e595\lib\mypspice.lib
VDD vdd 0 DC 5
VSS vss 0 DC 0
VIN in 0 DC 0V
Ven en 0 DC 5V
Venb enb 0 DC 0V

MP1 out enb in vdd CMOSP W=6U L=2U

4
MN1 out en in vss CMOSN W=6U L=2U

RL out 0 1G

.DC VIN 0 5V .01


.PROBE
.END

The PMOS is cut off ( R ONP = ∞ ) for VIN ≤ 1.5V , and the NMOS is cutoff for
VIN ≥ 3.5V . In the transmission gate configuration, the two transistors are connected in
parallel. The combined parallel resistance is less than either the on resistance value. The
combined resistance can be summarized as follows:

0≤V(in)≤1.5 Ron=Ronn ;since Ronp =∞


1.5<V(in)≤3.5 Ron=Ronn//Ronp
V(in)>3.5 Ron=Ronp ;since Ronn=∞

When the switch is on V(in)≅V(out), hence VDS≅0. That is, the transistor is operating in
the ohmic region. The drain current is given by:

I DS = K(W/L eff )(VGS - VT - VDS /2)VDS ≅ K(W/L eff )(VGS - VT )VDS


VDS 1
R DS = =
I DS K(W/L eff )(VGS - VT )

To simplify the layout of transmission gate, the (W/L) is usually chosen to be the same
for both transistors. Since the transconductance (K) of PMOS is less than for NMOS, the
on resistance of PMOS is greater than that of the NMOS. That is, Ronp > Ronn for the
same effective gate to source voltage.

For the given W/L , the simulated combined parallel resistance of the transmission gate
has a maximum value of 7.5622k. This maximum occurs when the NMOS transistor
cutoff at V(in)=3.5, since the combined resistance becomes Ronp which is decreasing in
value thereafter. The theoretical value is calculated below:

At V(in)=3.5V, the following voltages are obtained for the PMOS transistor:
VDS=V(out)-V(in)≅0 = > V(out)≅V(in)=VS=3.5
VGS=VG-VS=0-3.5=-3.5
VBS=VB-VS=5-3.5=1.5

VTP = VT0P − γ ( φ −V BS ) ( )
− φ = −0.9629 − 0.618 0.6 + 1.5) − 0.6 = −1.37976

5
The effective length of the transistor is given by:

Leff=L-2*LD=2-2*(.309)=1.382

where LD is obtained from scna20orbit level 2 spice parameter file


V 1 1
R DS = DS =| |=| |= 6.35k
I DS K(W/L eff )(VGS - VT ) (17.1E - 6)(6/1.382)(-3.5 - (-1.37976))

This calculated value is slightly lower than the simulated value of 7.5622k. The on
resistance of the transmission gate can be reduced by increasing the (W/L) ratio. The on
resistance is inversely proportional to the W/L ratio can be illustrated using Pspice
simulation. The Pspice code is shown in LISTING 2. The simulation results are shown in
Figure 3.

Figure 3. Transmission gate characteristics.

* tgate circuit
* Filename=tg_resm.cir"
LISTING 2:
.LIB C:\e595\lib\mypspice.lib
VDD vdd 0 DC 5
VSS vss 0 DC 0

6
VIN in 0 DC 0V
Ven en 0 DC 5V
Venb enb 0 DC 0V

MP1 out1 enb in vdd CMOSP W=6U L=2U


MN1 out1 en in vss CMOSN W=6U L=2U
RL1 out1 0 1G

MP2 out2 enb in vdd CMOSP W=12U L=2U


MN2 out2 en in vss CMOSN W=12U L=2U
RL2 out2 0 1G

MP3 out3 enb in vdd CMOSP W=18U L=2U


MN3 out3 en in vss CMOSN W=18U L=2U
RL3 out3 0 1G

.DC VIN 0 5V .01


.PROBE
.END

DIGITAL CIRCUITS IMPLEMENATION WITH TRANSMISSION


GATES
The digital gate implementation using transmission gates is based on shannon
expansion theorem.
Shannon expansion theorem:
F(x1,x2,...,xn) = x1 F(1,x2,x3,...,xn) + x1 F(0,x2,x3,...,xn)
F(x1,x2,...,xn) = x1x2 F(1,1,x3,…,xn) +x1 x2 F(1,0,x3,…,xn) + x1 x2 F(0,1,x3,…,xn) +
x1 x2 F(0,0,x3,…,xn)

Two-Input Universal Logic Module


For function of two variables A, B

F(A,B) = A F(1,B) + A F(0,B)

F(A,B) NAME F(0,B) F(1,B)


AB AND 0 B
A+B OR B 1
A+B NOR B 0
AB NAND 1 B
AB+AB EXOR B B
AB+AB NEXOR B B
NOTE: 0 = VSS, 1=VDD

7
This shows that any two-input logic gate can be implemented using transmission gates
and inverters only.
Programmable Two-Input Universal Logic Module and
MUX 4 to 1 or DEMUX 1 to 4
F(A,B) = A B G0+ A B G1 + A B G2 + A B G3

F(A,B) NAME G0 G1 G2 G3
AB AND 0 0 0 1
A+B OR 0 1 1 1
A+B NOR 1 0 0 0
AB NAND 1 1 1 0
AB+AB EXOR 0 1 1 0
AB+AB NEXOR 1 0 0 1

The above universal logic module becomes a multiplexer 4-1 or demultiplexer 1 -4, if we
interpret the role of the input variables A, B as the two input select lines, with A the MSB
and B the LSB. The G0, G1, G2 and G3 are the analog inputs. Since the transmission gate
(TG) is symmetrical device we can interchange the role of input to output and vice versa.

8
F(0,B)

A F(A,B) A

F(1,B)

F(A,B) = A F(1,B) + A F(0,B)

Figure 1. Two-Input Universal Logic Module Using Transmission Gate.

9
A A B B

G0

G1

F(A,B)

G2

G3

F(A,B) = G0(A B) + G1(A B) + G2(A B) + G3(A B)

Figure 2. Programmable Two-Input Universal Logic Module Using Transmission Gate.

10
Vdd

(6/2)

in out in out

INV
(6/2)

Vss

enb
enb

(6/2)
in out in out
(6/2)

en
en
TG

in1

in1 5V
out
in2
in1 in1 out
NAND

in2

in1

Figure 3. The Basic Building Blocks (INV, and TG) used for Implementing NAND gate.

11
The functionality of the implemented NAND gate is verified with Pspice. The code is
shown in LISTING 1, and simulated result is shown in Figure 4.

LISTING 1:
* 2 input nand circuit
* Filename=nand2_1.cir"

VDD vdd 0 DC 5V
VSS vss 0 DC 0

VIN1 in1 0 PWL(0,0V 2us,0V 2.01us,5V 12us,5V 12.01us,0V 1s,0V)


VIN2 in2 0 PWL(0,0V 1us,0V 1.01us,5V 8us,5V 8.01us,0V 1s,0V)

Xnand in1 in2 out vdd vss NAND

.SUBCKT NAND in1 in2 out vdd vss


Vhi hi 0 DC 5V
Xtg1 hi out in1b vdd vss TG
Xtg2 in2b out in1 vdd vss TG
Xinv1 in1 in1b vdd vss INVERTER
Xinv2 in2 in2b vdd vss INVERTER
.ENDS

.SUBCKT INVERTER in out vdd vss


MP1 out in vdd vdd CMOSP W=6U L=2U
bMN1 out in vss vss CMOSN W=6U L=2U
.ENDS INVERTER

.SUBCKT TG in out en vdd vss


MP1 out en_bar in vdd CMOSP W=6U L=2U
MN1 out en in vss CMOSN W=6U L=2U
Xinv en en_bar vdd vss INVERTER
.ENDS TG

*SCNA20 Orbit 2u technology Spice Parameters


.MODEL CMOSN NMOS LEVEL=2 PHI=0.600000 TOX=4.1000E-08 XJ=0.200000U
TPG=1
+ VTO=0.8630 DELTA=6.6420E+00 LD=2.4780E-07 KP=4.7401E-05
+ UO=562.8 UEXP=1.5270E-01 UCRIT=7.7040E+04 RSH=2.4000E+01
+ GAMMA=0.4374 NSUB=4.0880E+15 NFS=1.980E+11 NEFF=1.0000E+00
+ VMAX=5.8030E+04 LAMBDA=3.1840E-02 CGDO=3.1306E-10
+ CGSO=3.1306E-10 CGBO=4.3449E-10 CJ=9.5711E-05 MJ=0.7817
+ CJSW=5.0429E-10 MJSW=0.346510 PB=0.800000
* Weff = Wdrawn - Delta_W
*The suggested Delta_W is -5.4940E-07

12
.MODEL CMOSP PMOS LEVEL=2 PHI=0.600000 TOX=4.1000E-08 XJ=0.200000U
TPG=-1
+ VTO=-0.9629 DELTA=5.7540E+00 LD=3.0910E-07 KP=1.7106E-05
+ UO=203.1 UEXP=2.1320E-01 UCRIT=8.0280E+04 RSH=5.6770E+01
+ GAMMA=0.6180 NSUB=8.1610E+15 NFS=3.270E+11 NEFF=1.5000E+00
+ VMAX=9.9990E+05 LAMBDA=4.5120E-02 CGDO=3.9050E-10
+ CGSO=3.9050E-10 CGBO=4.1280E-10 CJ=3.2437E-04 MJ=0.5637
+ CJSW=3.3912E-10 MJSW=0.275876 PB=0.800000
* Weff = Wdrawn - Delta_W
* The suggested Delta_W is -4.1580E-07

.TRAN 1ns 20us


.PROBE
.END

Figure 4. NAND gate Pspice simulation result.

13
Edge Triggered D Flip-Flop Implementation Using Transmission Gates
The operation of edge triggered DFF can be explained by tracing the D input
signal as the clock signal goes from 0 to 1. The CLR input is assumed inactive (CLR=1).
When CLK=0, transmission gates T1 and T4 are on, while T2 and T3 are off. In this
state, D1=D, D2=D’, D3=Q’. G3 and G4 form a latch, latching the previous state Q(prev)
of the DFF. When CLK=1, transmission gates T1 and T4 are off, while T2 and T3 are on.
In this state, G1 and G2 form a latch latching the previous value of D, since
D2=D’(prev), D1 =D(prev), the current input D is now disconnected from D1.
D2=D1=D’(prev), and Q=D(prev). That is, the previous D input is latched on the rising
edge of the CLK. Activating the CLR input (CLR=0), will force D2=1, Q’=1 regardless
of the value of input D. The value of D2=1 is copied D3 and complemented to generate
Q=0 in the next CLK rising edge. The operation of DFF with SET input is similar, except
the activation of SET input (SET=0), will cause the DFF to set Q=1, and Q’=0.

14
CLK CLK

Q
G2

CLK T2 T4
CLK CLK CLK
G4
D
D1
G1 G3
T1 D2 D3 Q
CLK T3
CLK
CLR

CLK G5 CLK

Edge Triggered DFF with Clear Input

CLK CLK

Q
G2

T2 T4
CLK CLK CLK CLK
G4

D G1
D1 D2 D3 G3
T1 T3 Q
CLK
CLK

SET

CLK CLK

Edge Triggered DFF with Set Input

Figure 5. Edge Triggered DFF with CLR/ SET input Implementation Using TG

15
Figure 6. Edge Triggered DFF with CLR input Response.

16
Figure 7. Edge Triggered DFF with SET input Response.

17

You might also like