Salta al contenuto
Note per Studenti CMOS Current Mirrors and Integrated Circuit Basics Report

CMOS Current Mirrors and Integrated Circuit Basics

In questa pagina 5

This note follows the lecture on the basic building blocks of analog integrated circuits. Device models: The MOSFET TransistorThe n-channel and p-channel MOSFET: structure, terminal currents, derivation of the triode current with the gradual channel approximation, cut-off, saturation (active region) and channel length modulation.The MOSFET Transistor → and Small-Signal Equivalent Models of MOSFET and BJTLinearizing the transistor equations around a dc operating point gives small-signal models: the MOSFET becomes a voltage-controlled current source g_m v_gs in parallel with r_o, the BJT adds the input resistance r_pi, and the two share one unified two-port with the parameter table g_m, r_i, r_o.Small-Signal Equivalent Models of MOSFET and BJT →; amplifier terminology: Common-Source Transfer Characteristic and Linear AmplificationA MOSFET with a drain resistor has a non-linear input-output curve with three branches (cut-off, saturation, triode); to amplify linearly one picks a dc operating point on the steep saturation branch, adds a small signal to the dc input and linearizes the curve with a first-order Taylor expansion around that point.Common-Source Transfer Characteristic and Linear Amplification →.

1. Discrete circuits and integrated circuits

  • A circuit built with discrete components is mounted on a printed circuit board (PCB).
  • An integrated circuit (IC) is realized by fabricating all the circuit components at the same time (through a sequence of steps, collectively known as the fabrication process or technology) on a single semiconductor crystal (the chip).

Main fabrication technologies for integrated circuits:

Technology Content
CMOS (Complementary Metal-Oxide-Semiconductor) enhancement-mode nMOSFET (VTN>0V_{TN} > 0) and pMOSFET (VTP<0V_{TP} < 0): basic digital CMOS; plus resistors, capacitors (analog options) and inductors (RadioFrequency options)
BiCMOS Bipolar + CMOS: at least one good npn BJT
BCD Bipolar + CMOS + power nMOSFET: ICs for automotive applications

1.1 Main peculiarities of IC technologies

  • The cost of a circuit is proportional to its area on the chip, not to the component count as for discrete-component circuits; a transistor and a resistor with the same area cost the same.
  • Good matching between devices of the same type: two transistors M1M_1 and M2M_2 on the same chip at a close distance have VTN1≅VTN2V_{TN1} \cong V_{TN2}, kn1′≅kn2′k_{n1}' \cong k_{n2}', and so on. Therefore circuits that depend on the availability of (quasi) identical devices are possible, for example current mirrors and differential pairs.

2. The basic CMOS current mirror

A current mirror (CM) is a two-port with input current iIi_I (voltage vIv_I) and output current ioi_o (voltage vov_o). There is an n-type CM (nCM, referred to ground) and a p-type CM (pCM, connected to VDD>0V_{DD} > 0). Its behaviour:

dc: Io=M II,M=PQ, P,Q integersac: io=M ii\text{dc: } I_o = M\,I_I,\quad M = \frac{P}{Q},\ P, Q \text{ integers}\qquad\qquad \text{ac: } i_o = M\,i_i

2.1 n-type CM

Circuit: M1M_1 is diode-connected (gate tied to drain), carries the input current iIi_I and sets VGS1V_{GS1}; the same VGSV_{GS} is applied to the gate of M2M_2, whose drain carries the output current ioi_o.

   iI |                 | io
      v                 v
  vI  +--+          +--+ vo
      |  D1         D2 |
      +--G1 ---+--- G2 |
      |        |       |
     S1       S2
     GND ----------- GND
 (M1 diode-connected: G1 tied to D1;  VGS1 = VGS2)

Assumptions: M1M_1 and M2M_2 have the same VTNV_{TN}, the same kn′k_n', the same length L1=L2=LL_1 = L_2 = L, gate widths W2=M W1=M WW_2 = M\,W_1 = M\,W, and operate in the active (saturation) region.

dc analysis.

II=ID1=kn′2WL(VGS1−VTN)2,VGS1=VGS2=VGSI_I = I_{D1} = \frac{k_n'}{2}\frac{W}{L}(V_{GS1} - V_{TN})^2,\qquad V_{GS1} = V_{GS2} = V_{GS}

Io=ID2=kn′2M WL(VGS2−VTN)2=M ID1=M III_o = I_{D2} = \frac{k_n'}{2}\frac{M\,W}{L}(V_{GS2} - V_{TN})^2 = M\,I_{D1} = M\,I_I

(the square is the same as for M1M_1, since VGS2=VGS1V_{GS2} = V_{GS1}).

Conditions for the active region.

  • M1M_1: VGS1=VTN+2IIkn′W/L>VTNV_{GS1} = V_{TN} + \sqrt{\dfrac{2I_I}{k_n' W/L}} > V_{TN} if II>0I_I > 0. Since the gate is tied to the drain, VDS1=VGS1>VOV=VGS1−VTNV_{DS1} = V_{GS1} > V_{OV} = V_{GS1} - V_{TN}. So M1M_1 is in the active region if II>0I_I > 0.
  • M2M_2: VGS2=VGS1>VTNV_{GS2} = V_{GS1} > V_{TN} if II>0I_I > 0, and VDS2=vOV_{DS2} = v_O must satisfy

vO>VOV=VGS−VTN=2IIkn′W/Lv_O > V_{OV} = V_{GS} - V_{TN} = \sqrt{\frac{2I_I}{k_n' W/L}}

2.2 p-type CM

The same circuit mirrored: sources of M1M_1 and M2M_2 at VDDV_{DD}, M1M_1 diode-connected, input and output currents flowing towards ground, VGS1=VGS2V_{GS1} = V_{GS2}, with VGS1V_{GS1}, VGS2V_{GS2} and VDSV_{DS} negative.

Assumptions: same VTPV_{TP}, same kp′k_p', same length LL, W2=M W1=M WW_2 = M\,W_1 = M\,W, both in the active region.

II=ID1=kp′2WL(VGS−VTP)2,Io=ID2=kp′2M WL(VGS−VTP)2=M III_I = I_{D1} = \frac{k_p'}{2}\frac{W}{L}(V_{GS} - V_{TP})^2,\qquad I_o = I_{D2} = \frac{k_p'}{2}\frac{M\,W}{L}(V_{GS} - V_{TP})^2 = M\,I_I

  • M1M_1 is in the active region if II>0I_I > 0;
  • M2M_2 is in the active region if II>0I_I > 0 (so that VGS<VTPV_{GS} < V_{TP}) and VDS2<VOV=VGS−VTPV_{DS2} < V_{OV} = V_{GS} - V_{TP}. Since vO=VDD+VDS2v_O = V_{DD} + V_{DS2}:

vO=VDD+VDS2<VDD+VOV⟹II>0  and  vO<VDD+VOV⏟<0v_O = V_{DD} + V_{DS2} < V_{DD} + V_{OV}\qquad\Longrightarrow\qquad I_I > 0\ \text{ and }\ v_O < V_{DD} + \underbrace{V_{OV}}_{<0}

3. Application in dc: the N-output current mirror

One current reference IREFI_{REF} (an ideal current source from VDDV_{DD}) feeds the diode-connected M0M_0; its gate is distributed to NN mirror transistors M1,M2,…,MNM_1, M_2, \dots, M_N with output currents Io1,Io2,…,IoNI_{o1}, I_{o2}, \dots, I_{oN}.

All transistors have Lk=LL_k = L for k=0,1,2,…,Nk = 0, 1, 2, \dots, N, widths Wk=mkW0W_k = m_k W_0, the same VTNk=VTNV_{TNk} = V_{TN} and kn,k′=kn′k_{n,k}' = k_n', and operate in the active region. Then

Io,k=mk IREF,mk=WkW0I_{o,k} = m_k\,I_{REF},\qquad m_k = \frac{W_k}{W_0}

A single reference current thus generates many bias currents, each scaled by the ratio of the transistor widths.

4. The current mirror in the small-signal ac regime

Replace each transistor by its small-signal model (gmg_m, ror_o, with ig=0i_g = 0). The diode connection makes vgs1=vgs2=viv_{gs1} = v_{gs2} = v_i.

For the nCM, M1M_1 has the gate connected to its drain, so seen from the input it is the current source gm1vig_{m1}v_i in parallel with ro1r_{o1}, and a source driven by its own terminal voltage is equivalent to a resistor:

gm1 vi (controlled by the voltage across it)  =  resistor 1gm1g_{m1}\,v_i \ \text{(controlled by the voltage across it)} \;=\; \text{resistor } \frac{1}{g_{m1}}

The input side is therefore ro1∥1gm1r_{o1}\parallel\dfrac{1}{g_{m1}}. The output side is the source gm2vig_{m2}v_i in parallel with ro2r_{o2}.

Input resistance. Since gm1ro1=2ID1VOV⋅1λnID1=2 (1/λn)VOV≫1g_{m1}r_{o1} = \dfrac{2I_{D1}}{V_{OV}}\cdot\dfrac{1}{\lambda_n I_{D1}} = \dfrac{2\,(1/\lambda_n)}{V_{OV}} \gg 1 (typical values: 1/λn1/\lambda_n between 10 V10\ \text{V} and 100 V100\ \text{V}, VOVV_{OV} between 0.15 V0.15\ \text{V} and 0.6 V0.6\ \text{V}), we have ro1≫1/gm1r_{o1} \gg 1/g_{m1} and

ii=viro1∥1/gm1≅vi1/gm1=gm1 vii_i = \frac{v_i}{r_{o1}\parallel 1/g_{m1}} \cong \frac{v_i}{1/g_{m1}} = g_{m1}\,v_i

Transconductance of M2M_2. With the same VOVV_{OV} and ID2=Io=MIII_{D2} = I_o = M I_I:

gm2=2ID2VOV=2 M IIVOV=M 2ID1VOV=M gm1g_{m2} = \frac{2I_{D2}}{V_{OV}} = \frac{2\,M\,I_I}{V_{OV}} = M\,\frac{2I_{D1}}{V_{OV}} = M\,g_{m1}

Hence the output current source is gm2vi=M gm1vi=M iig_{m2}v_i = M\,g_{m1}v_i = M\,i_i.

The mirror is a current-controlled current source, a current amplifier with gain M=W2/W1M = W_2/W_1:

Ri≅1gm1 (small),Ro=ro2 (large),io=M iiR_i \cong \frac{1}{g_{m1}}\ (\text{small}),\qquad R_o = r_{o2}\ (\text{large}),\qquad i_o = M\,i_i

so it is a good current amplifier (small input resistance, large output resistance). The pCM has the equivalent small-signal circuit with the same parameters.

5. Example: current mirror used to bias a common-source amplifier

A pMOSFET M1M_1 has its source at VDDV_{DD} and its drain loaded by RDR_D to ground; the input vIv_I is applied at the gate, the output vov_o is the drain voltage. In ac, the pMOSFET with RDR_D becomes a common-source stage with RDR_D at the drain.

Assume VDD=1.2 VV_{DD} = 1.2\ \text{V} and choose W1/L1W_1/L_1 such that

ID1=kp′2W1L1VOV2=1 mAwhen VOV=−0.2 VI_{D1} = \frac{k_p'}{2}\frac{W_1}{L_1}V_{OV}^2 = 1\ \text{mA}\quad\text{when } V_{OV} = -0.2\ \text{V}

Maximum value of RDR_D. M1M_1 is in the active region if VOV<0V_{OV} < 0 (satisfied) and VDS1<VOV=−0.2 VV_{DS1} < V_{OV} = -0.2\ \text{V}. With VDS1=vO−VDD=RDID1−VDDV_{DS1} = v_O - V_{DD} = R_D I_{D1} - V_{DD}:

RDID1−VDD<VOV ⇒ RD<VDD+VOVID1=1.2 V−0.2 V1 mA=1 kΩR_D I_{D1} - V_{DD} < V_{OV}\ \Rightarrow\ R_D < \frac{V_{DD} + V_{OV}}{I_{D1}} = \frac{1.2\ \text{V} - 0.2\ \text{V}}{1\ \text{mA}} = 1\ \text{k}\Omega

Gain with RD=1 kΩR_D = 1\ \text{k}\Omega. Small-signal parameters:

gm1=2ID1∣VOV∣=10 mS,ro1=1λID=102 V10−3 A=100 kΩ(λ=10−2 V−1)g_{m1} = \frac{2I_{D1}}{\lvert V_{OV}\rvert} = 10\ \text{mS},\qquad r_{o1} = \frac{1}{\lambda I_D} = \frac{10^2\ \text{V}}{10^{-3}\ \text{A}} = 100\ \text{k}\Omega\quad(\lambda = 10^{-2}\ \text{V}^{-1})

ro1=100 kΩ≫1/gm1=100 Ωr_{o1} = 100\ \text{k}\Omega \gg 1/g_{m1} = 100\ \Omega and ro1≫RD=1 kΩr_{o1} \gg R_D = 1\ \text{k}\Omega, so ro1∥RD≅RDr_{o1}\parallel R_D \cong R_D and

vo=−gm1vi (ro1∥RD)≅−gm1RD vi,Avo=vovi=−10v_o = -g_{m1}v_i\,(r_{o1}\parallel R_D) \cong -g_{m1}R_D\,v_i,\qquad A_{vo} = \frac{v_o}{v_i} = -10

5.1 Replacing RDR_D with a current mirror (active load)

Replace RDR_D with the nMOSFET M2M_2 of an n-type current mirror whose diode-connected transistor is M3M_3, fed by a current reference IREF=100 μAI_{REF} = 100\ \mu\text{A}. The current of M2M_2 is ID2=Io=M II=M IREFI_{D2} = I_o = M\,I_I = M\,I_{REF}; since M2M_2 must carry the current ID1=1 mAI_{D1} = 1\ \text{mA} of M1M_1:

M=ID2IREF=ID1IREF=10M = \frac{I_{D2}}{I_{REF}} = \frac{I_{D1}}{I_{REF}} = 10

Small-signal equivalent circuit: M1M_1 gives gm1vig_{m1}v_i in parallel with ro1r_{o1}; M2M_2 gives ro2r_{o2} in parallel with the source M irefM\,i_{ref}; the M3M_3 branch has 1/gm31/g_{m3} and the reference irefi_{ref}. Since IREFI_{REF} is constant, iref=0i_{ref} = 0, so the mirror source is zero and M2M_2 acts only as the resistance ro2r_{o2}:

vo=−gm1 (ro1∥ro2) viv_o = -g_{m1}\,(r_{o1}\parallel r_{o2})\,v_i

ro2=1λnID2=1λnID1=1λpID1=ro1=100 kΩ(λn=λp)r_{o2} = \frac{1}{\lambda_n I_{D2}} = \frac{1}{\lambda_n I_{D1}} = \frac{1}{\lambda_p I_{D1}} = r_{o1} = 100\ \text{k}\Omega\quad(\lambda_n = \lambda_p)

vo=−(10 mS)(50 kΩ) vi=−500 vi,Av=−500v_o = -(10\ \text{mS})(50\ \text{k}\Omega)\,v_i = -500\,v_i,\qquad A_v = -500

The active load gives a gain of −500-500 against −10-10 with the resistor RDR_D.

Versione ripasso

ICs: all components fabricated together on one chip (technologies CMOS, BiCMOS = bipolar + CMOS with a good npn, BCD = bipolar + CMOS + power nMOSFET for automotive). Cost ∝\propto chip area (a transistor and a resistor of the same area cost the same); good matching of nearby devices (VTN1≅VTN2V_{TN1} \cong V_{TN2}, kn1′≅kn2′k_{n1}' \cong k_{n2}') enables current mirrors and differential pairs.

Basic CM: dc Io=MIII_o = M I_I with M=P/QM = P/Q; ac io=Miii_o = M i_i.

nCM: M1M_1 diode-connected, VGS1=VGS2V_{GS1} = V_{GS2}, L1=L2=LL_1 = L_2 = L, W2=MW1W_2 = M W_1, same VTNV_{TN}, kn′k_n':

II=kn′2WL(VGS−VTN)2,Io=kn′2MWL(VGS−VTN)2=MIII_I = \frac{k_n'}{2}\frac{W}{L}(V_{GS}-V_{TN})^2,\qquad I_o = \frac{k_n'}{2}\frac{MW}{L}(V_{GS}-V_{TN})^2 = M I_I

  • M1M_1 active if II>0I_I > 0 (VDS1=VGS1>VOVV_{DS1} = V_{GS1} > V_{OV});
  • M2M_2 active if vO>VOV=2II/(kn′W/L)v_O > V_{OV} = \sqrt{2I_I/(k_n' W/L)}.

pCM: Io=MIII_o = M I_I; M2M_2 active if II>0I_I > 0 and vO<VDD+VOVv_O < V_{DD} + V_{OV} (VOV<0V_{OV} < 0).

N-output mirror: Io,k=mkIREFI_{o,k} = m_k I_{REF}, mk=Wk/W0m_k = W_k/W_0.

ac: ro1≫1/gm1r_{o1} \gg 1/g_{m1} because gm1ro1=2(1/λn)VOV≫1g_{m1}r_{o1} = \frac{2(1/\lambda_n)}{V_{OV}} \gg 1 (1/λn∼10÷100 V1/\lambda_n \sim 10 \div 100\ \text{V}, VOV∼0.15÷0.6 VV_{OV} \sim 0.15 \div 0.6\ \text{V}). gm2=Mgm1g_{m2} = M g_{m1}, ii≅gm1vii_i \cong g_{m1}v_i, so gm2vi=Miig_{m2}v_i = M i_i:

Ri≅1gm1 (small),Ro=ro2 (large),gain M=W2W1R_i \cong \frac{1}{g_{m1}}\ (\text{small}),\qquad R_o = r_{o2}\ (\text{large}),\qquad \text{gain } M = \frac{W_2}{W_1}

Example: pMOS CS stage, VDD=1.2 VV_{DD} = 1.2\ \text{V}, ID1=1 mAI_{D1} = 1\ \text{mA}, VOV=−0.2 VV_{OV} = -0.2\ \text{V}: RD<(VDD+VOV)/ID1=1 kΩR_D < (V_{DD} + V_{OV})/I_{D1} = 1\ \text{k}\Omega. With RD=1 kΩR_D = 1\ \text{k}\Omega: gm1=10 mSg_{m1} = 10\ \text{mS}, ro1=100 kΩr_{o1} = 100\ \text{k}\Omega, Avo=−gm1RD=−10A_{vo} = -g_{m1}R_D = -10. With an nCM active load (IREF=100 μAI_{REF} = 100\ \mu\text{A}, M=10M = 10, iref=0i_{ref} = 0): Av=−gm1(ro1∥ro2)=−(10 mS)(50 kΩ)=−500A_v = -g_{m1}(r_{o1}\parallel r_{o2}) = -(10\ \text{mS})(50\ \text{k}\Omega) = -500.

Typical mistakes: forgetting that the diode-connected transistor is always active when II>0I_I > 0 but the output transistor needs a minimum output voltage; using gm2=gm1g_{m2} = g_{m1} instead of Mgm1M g_{m1}; keeping the mirror source in the ac circuit when IREFI_{REF} is constant (iref=0i_{ref} = 0); wrong sign of VOVV_{OV} and VDSV_{DS} for the pMOS.