Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

1. Current mirrors

All the circuits studied in the previous paragraphs were simple, controlled current sources. Their ana- lysis has been done under the assumption that all the transistors are correctly biased in the saturation region. The issue, that has not been discussed, is the method used to insure the correct biasing of the transistors. Practically the biasing conditions are reduced to the generation of all the constant voltages in the circuit. The vast majority of the gate potentials are generated by injecting a reference current in one or more diodes con- nected in series. The voltage drop on these diodes will serve for stabilizing the gate-source voltages of the transistors in the . The resulting class of sub-circuits is called current mirrors. The current mir- rors are particularly useful for the distribution of bias currents in larger circuits. They can also be employed as current . The basic parameter that describes the functionality of a current mirror is its current gain or reflection coefficient. The current gain is defined as a ratio between the generated output current and the input refe- rence current.

I n  out (1) Iin

The performance requirements for current mirrors are similar as for current sources:  the output resistance must be as large as possible in order to reduce the dependence of the output current on the output voltage;  the input resistance must be as small as possible;  the minimum allowed output voltage must be as small as possible;  the minimum input voltage must be also as small as possible;  the current gain must be precisely defined, constant with the supply voltage and temperature independent. The following paragraphs present the most important current mirror structures. The emphasis lays on the analysis of the circuits based on the parameters listed above and on the methods used to improve the per- formances. Some of the effects, that will be considered during the analysis, are the channel length modula- tion (Early effect) and the transistor mismatch.

1.1. MOS current mirrors

1.1.1. The simple MOS current mirror

The simple current mirror can be obtained from the one transistor current source by using a second transistor in diode connection that generates the necessary gate-source voltage of the transistor in the output stage. The gate source voltage is set by the diode geometry and the injected input or reference current. Since the gates and the sources of the two transistor are connected together the gate-source voltage of the current source will be equal to the gate source voltage of the diode. The schematic of the circuit is given in Figure 1. The corresponding small signal equivalent model is shown in Figure 2.

Figure 1. NMOS and PMOS implementations of a simple current mirror

1

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 2. The small signal equivalent model of the simple MOS current mirror

The calculation of the current gain n starts with the expressions of the input and of the output currents.

IIVVV  2 1     in D1 1 GS 1 Th 1 DS 1 2 IIVVV  1   (2)  out D2 2 GS 2 Th 2  DS 2 

 CWCWox1  ox 2 1;  2   2LL1 2 2

If the gate-source voltages of the transistors are assumed to be equal, the current gain results

2 I VVV 1    n out  2GS Th 2 DS 2 (3) I 2 in 1VVVGS Th 1 1   DS 1 

The input resistance of the mirror can be determined from the small signal equivalent model. First the input voltage is written as a function of the input current:

Vin I in  I1 r DS 1  I in  g m 1 V GS 1 r DS 1 (4)

The gate-source voltage VGS1 of the transistor M1 can be identified from the schematic as the input vol- tage. By replacing VGS1 with Vin in the equation (4) the input resistance results:

Vin r DS1 1 Rin    (5) Iin1 g m1 r DS 1 g m 1

The output resistance can be calculated with a similar method as for a simple, one transistor current source. The final expression of the output resistance is

Vout Rout  r DS1 (6) Iout

The minimum allowed output voltage is defined similarly as for the simple, one transistor current source and is equal to the drain-source voltage of the transistor M2 at which the device is still biased in the saturation region. When taking a closer look to the equation (3) it can be noticed that there are three independent factors that can affect the value of the current gain. These factors are the channel length modulation (Early effect), the threshold voltage mismatch and the geometrical mismatch of the transistors. The theorem of superposi- tion can be used to emphasize each effect. In order to clearly see the consequences of channel length modulation, the transistor geometries and the threshold voltages are considered perfectly matched. In this case the current gain of the mirror is

1 V n  DS 2 (7) 1 VDS1

2

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

It results that the drain-source voltages of the two transistors must be balanced in order to reduce the influence of the channel length modulation. Figure 3 shows the typical variation of the current gain plotted against the mirror input-output voltage mismatch, equal to the drain source voltage difference of the tran- sistors (Vout−Vin=VDS2−VDS1).

Figure 3. Variation of the current gain against the input-output voltage imbalance

It can be seen that, for equal input and output voltages, the current gain is equal to unity. It can also be noticed that a 1V voltage imbalance can produce an error approximately equal to 9%. The 1V voltage diffe- rence may appear relatively easily in biasing circuits where the mirror is used for changing the sign of a given bias current. Usually in these cases the two branches of the circuit will see different load resistances and, as a consequence, the voltage drops will be imbalanced. The analysis of the current gain errors caused by geometry and threshold voltage mismatch can be per- formed when considering the input-output (and implicitly the drain-source) voltages perfectly balanced. In this case the error is not influenced by the channel length modulation effect. In the calculations it is assumed that the threshold voltage mismatch is ΔVTh and the geometry mismatch is translated to Δβ. For the threshold voltages it holds true that

1 1 VV VVVVVVV  ;;     Th1 Th 2 (8) Th1 Th2 Th Th 2 Th 2 Th Th 2

Similar equations can be written also for the β-s of the transistors:

1 1       ;;         1 2 (9) 12 2 2 2

By replacing the expressions in the equation (3) the current gain results:

2 1  1     VVVGS  Th   Th  Iout 2  2  n   2 (10) Iin 1  1     VVV     2 GS Th 2 Th 

Writing the threshold voltage and β as common terms for the numerator and the denominator leads to

2  V  1 1  Th 2  2 VV  Iout   GS Th   n   (11) I 2 in  VTh  1  1   2  2VVGS Th  

3

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

For further calculations let us consider the inverse binomial function and its Taylor series expansion, given by the following equation:

1 xk 1 x x2 x 3  (12)  k1   2  3  4  x ak 0 a a a a a

For low mismatch between the transistors, if Δβ << β and ΔVTh << 2(VGS-VTh), the second and higher order terms of the series can be neglected and the expression of the current gain may be approximated as

2 4   VTh  n 1    1   (13) 2   2VVGS Th  

After squaring the expressions and successively neglecting second order terms the current gain can be approximated as given in the following equation:

 2V n 1   Th (14) 2 VVGS Th

It results that the precision of the current gain can be improved if the transistors are sized for larger geometries or their drain currents are increased. In practice, an increase of the bias current either leads to higher consumption or the current value may be imposed by design specifications. Therefore, if operating frequency and circuit area limitations are not an issue, larger geometries are always preferred for better de- vice matching. Typically, the owner of the fabrication facility and the target process indicates the minimum transistor area that should be used for a matching better than ±3σ. The minimum area is obtained after statis- tical measurements. A ±3σ matching means transistors identical to an extent approximately equal to 99,7% (considering a gaussian statistical distribution of the geometry errors). As a summary on the performances of the simple current mirror it can be concluded that not all the re- quirements listed at the beginning of this section are entirely and unconditionally satisfied. If necessary, a better precision of the current gain can be obtained by employing a structure that allows the balancing of the transistor drain-source voltages. The output resistance also needs improvement as a heritage from the simple current source output stage. One often used procedure, that reduces these deficiencies, is cascoding.

1.1.2. The MOS current mirror

The cascode current mirror is derived from the simple current mirror by cascoding both branches of the circuit. The schematic of the resulting structure is given in Figure 4.

Figure 4. NMOS and PMOS implementations of a cascode current mirror

The bulk terminal of the transistors is connected either to the lowest potential, or to VDD for PMOS transistors. In Figure 4 the substrate connections of the transistors M3 and M4 facilitate the identification of VBS voltages when calculating the input and the output resistances. The small signal equivalent model of the circuit is given in Figure 5.

4

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 5. Small signal model of the MOS cascode current mirror

 the input resistance In order to calculate the input and the output resistances, Thevenin’s and Norton’s theorems must be considered. The input of the current mirror is a current mode terminal. For a correct calculation of the input resistance the output terminal must be regarded as an interruption and the output current is equal to zero. This requirement results from the application of Thevenin’s theorem to the equivalent two-port network. Similarly, as a result of Norton’s theorem, for the correct calculation of the output resistance, the input must be considered shorted to the ground and the input voltage is equal to zero. The input voltage can be expressed as the sum of the drain-source voltage drops on the transistors M1 and M3.

VVVin DS1  DS 3 (15)

Due to the diode connections the gate-source voltages of the transistors M1 and M3 are equal to their drain-source voltage. For the transistor M1

VDS1 IIr in  31 DS  Ir in DS 1111  grV m DS GS  Ir in DS 1111  grV m DS DS (16)

This equation can be solved for VDS1:

rDS1 VIDS1   in (17) 1 gm1 r DS 1

Similarly, for the drain source voltage of the transistor M3

VDS3 IIIr in  123  DS  Ir in DS 3333  grV m DS DS  grV mb 333 DS BS (18)

Considering that the VBS3 voltage is

rDS1 VVVVIBS3 B 3  S 3 0  GS 1    in , (19) 1 gm1 r DS 1 the equation (18) can be solved for VDS3 can be written as

rDS3 g mb 3 r DS 1 r DS 3  VIDS3     in (20) 1gm3 r DS 3 1  g m 1 r DS 1 1  g m 3 r DS 3  

The input resistance is found by replacing the drain-source voltages VDS1 and VDS3 in the equation (15). The expression of Rin results

5

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Vin r DS1 r DS 3 g mb 3 r DS 1 r DS 3 Rin     (21) Iin1 g m1 r DS 1 1  g m 3 r DS 3 1  g m 1 r DS 1 1  g m 3 r DS 3 

This equation can be simplified if the drain-source resistances of the transistors in the saturated region are assumed to be relatively large. The effect of the substrate can also be neglected. The input resistance is then approximated with

1 1 Rin   (22) gm1 g m 3

The equation (22) suggests that the input resistance has been practically doubled compared to the input resistance of the simple current mirror.  the output resistance The output resistance can be determined by similar calculations as for the simple current mirror. The starting point is the small signal equivalent model presented in Figure 5. The output voltage can be written:

VVVout DS2  DS 4 (23)

Next the drain-source voltage of the transistor M2 can be expressed as a function of the output current. The gate voltages of the transistors M2 and M4 are set by M1 and M3. Consequently, they will not be influ- enced by the variations of the output current and can be considered constant in the schematic and zero in the small signal model.

V IIr   Ir  grV  Ir (24) DS2 out 6 DS 2 out DS 2 m 2 DS 2 GS 2 out DS 2 0

The drain-source voltage of the transistor M4 has a similar expression:

V IIIr    Ir  grV  grV (25) DS4 out 454 DS outDS 4444444 mDS GS mbDS BS VVSS4  4

Since the source potential of M4 is VS4=VDS2, the VDS4 voltage becomes

VDS4 I out r DS 4  g m 4  g mb 4 r DS 2 r DS 4  (26)

Replacing VDS2 and VDS4 into the equation (23) leads to the expression of the output resistance:

Rout r DS2  r DS 4  g m 4  g mb 4 r DS 2 r DS 4 (27)

Equation (27) shows that the output resistance of the cascode current mirror is equal to the output re- sistance of the cascode current source.  Derivation of the minimum allowed output voltage In order to determine the minimum allowed output voltage, all the transistors will be considered iden- tical and perfectly matched. In this case VDSat marks the minimum drain-source voltage of a transistor for which the device still operates in the saturated region. At the limit, the saturation condition is VDSat=VGS-VTh. From the schematic of the circuit in Figure 4 it can be seen that the gate-source voltages of all the transistors are equal and can be expressed as

VVVVVVGS1 GS 2  GS 3  GS 4  Th  DSat (28)

The gate potential of the transistor M4 is equal to the sum of the gate-source voltages of the transistors

6

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

M1 and M3. Then it holds true that

VVVG4 2 Th  2 DSat (29)

Since the gate-source voltages of M3 and M4 are also equal, the drain-source voltage drop across M2 is

VVVVVVVVVDS2 G 4  GS 4 2 Th  2 DSat  Th  Dsat  Th  DSat (30)

The expression of the minimum allowed output voltage results

VVVVVomin DS 2  DS 4  Th  2 DSat (31)

From the schematic of the circuit and from the equation (31) results that the voltage drop on the tran- sistor M2 is equal to VTh+VDSat. However, in order to correctly operate in the saturation region, the transistor only requires a drain-source voltage equal to VDSat. As a consequence, the cascode current mirror is not the most efficient structure for low voltage applications.  the current gain The precision of the current gain has been greatly improved by cascoding. The drain-source voltages of the transistors M1 and M2 are balanced by M3 and M4. Therefore, the current gain is not influenced by the input-output voltage imbalance and by the channel length modulation effect. The error caused by geometrical and threshold voltage mismatch will be unchanged and can be controlled by design for matching and good layout. In practice the transistors M3 and M4 are usually optimized for large transconductance, while M1-M2 are sized for good matching and large rDS. Figure 6 shows the variation of the current gain against the imba- lance of the input and the output voltages.

Figure 6. Variation of the current gain against the difference between the input and the output voltages

1.1.3. The low swing MOS cascode current mirror

The main drawback of the classical cascode current mirror is its lack of efficiency when considering the minimum allowed output voltage. The high output voltage requirements are the result of a large voltage drop on the transistor in the fundamental mirror M1-M2. From a thorough examination of the equations (30) and (31) along with the schematic of the cascode current mirror in Figure 4, it can be noticed that the mini- mum allowed output voltage could be lowered if the gate potential of the transistor M4 would be decreased with an amount equal to the threshold voltage VTh. This requires an alternative connection of the transistor M3 as shown in Figure 7. The new gate potential of the transistor M4 is VTh+2VDSsat. The drain-source voltage of M2 will be

VVVVVVVVDS2 G 4  GS 4  Th 2 DSat  Th  Dsat  DSat (32)

7

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 7. Possible implementation of a low swing cascode current mirror

The drain source voltage of M4 must be chosen to be VDSat, according to the saturation condition. It re- sults that the minimum output voltage has been lowered with the required threshold voltage to Vomin=2VDSat and has now the lowest possible value that keeps the transistors on the output branch in saturation. A special care must be taken of the biasing conditions for M3. The W/L ratio of this transistor must be lowered proportionally with the increase of its overdrive voltage 2VDSat. From the schematic it can be noticed that the overdrive voltage has been doubled in the new connection (equal to 2VDSat instead of VDSat). As a consequence, the size of the transistor must be only a quarter of its original value. The main drawback of this mirror is that the drain-source voltages of the transistors M1 and M2 are not balanced. This will influence the precision of the current gain as described in the previous paragraphs. The solution to this problem is to connect a cascode transistor M5 in series with M1 which sets the balance of the voltages. The connection must not change the minimum input voltage and the input resistance. For a correct balancing the gate potential of this transistor must be equal to the gate potential of the transistor M4. If the two cascode transistors are designed for identical gate-source voltages, then VDS1 equals VDS2 and the channel length modulation will not influence the current gain. The schematic of the resulting circuit is presented in Figure 8.

Figure 8. The low swing cascode current mirror with drain source voltage balancing

Another possible problem with this structure is due to the difficult biasing conditions for the transistor M3. The gate-source voltage of this device must be sufficiently high in order to cope with the gate potential requirements of M4 and M5. This could lead to extremely small values for the channel width. A possible so- lution, that overcomes the biasing problem, is to let some of the large gate-source voltage drop on a resistor inserted in series with the source of M3. The schematic with the inserted resistor is given in Figure 9.

Figure 9. The low swing cascode current mirror with drain source voltage balancing

8

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The resistor takes over a fraction of the initial gate-source voltage. If the transistors M3, M4 and M5 are identical and Iref=Iin, then the voltage drop VR on the resistor will be equal to the drain-source voltages of M1 and M2. In practice, the active implementation (MOSFET in the triode region) of the resistor is typically pre- ferred due to area and tolerance constraints. A practical implementation of the complete low voltage cascode current mirror is given in Figure 10.

Figure 10. Practical NMOS and PMOS implementations of the low swing cascode current mirror with minimal voltage requirements

The drain-source voltage of M6 can be written as

VVVDS6 GS 6  GS 3 (33)

For the transistor M3

VVVGS3 Th 3  DSat 3 (34)

If the effect of the substrate on the threshold voltage is neglected and VTh3 is assumed to be equal with VTh6, then the equation (33) becomes:

VVVVDS6 GS 6  Th 3,6  DSat 3 (35)

Considering the saturation condition VDS6>VGS6-VTh6 for the transistor M6, from the equation (35) it is clear that the device will always be biased in the triode region, regardless of its VDSat voltage. Accordingly, it can successfully replace the passive resistor in the low swing current mirror. The output resistance of the low voltage cascode current mirror is the same as for the classical ver- sion because the output stage has not been modified. The input resistance can be calculated from the small signal equivalent model given in Figure 11.

Figure 11. Small signal model of the low swing MOS cascode current mirror

From the small signal model the input voltage is

VVVin DS5  DS 1 (36)

9

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The drain source voltage of the transistor M1 can be written as

VDS1 IIr in  3 DS 1  Ir in DS 1  grV m 1 DS 1 GS 1  Ir in DS 1  grV m 1 DS 1 in (37)

Similarly, for M5

VDS5 I in  I 1  I 2 r DS 5 , (38) where the currents I1 and I2 can be expressed as functions of the input current and of the input voltage:

IgV155555mGS  gVV m G  S   gV mDS 51511  grgVI mDS min  in   (39) IgV2mb 55555 BS  gVV m B  S   gV mb 51 DS  grgVI mb 511 DS m in  in 

Replacing the currents I1 and I2 in equation (38) leads to

VDS5 I in r DS 5  g m 5  g mb 5 r DS 1 r DS 5 I in  g m 1 V in  (40)

The final expression of the input resistance results

Vin rDS1 r DS 5  g m 5  g mb 5 r DS 1 r DS 5 1 Rin    (41) Iin1 g m1 r DS 1  g m 1 g m 5  g mb 5 r DS 1 r DS 5 g m 1

This expression can be simplified by considering the large drain-source resistances and by neglecting the effect of the substrate. Practically, the input resistance of the low swing cascode current mirror is similar to the input resistance of the simple current mirror. Taking into account its advantages, the low swing cascode current mirror is an often used solution in low voltage biasing circuits.

1.1.4. The Wilson current mirror

The Wilson current mirror is derived from the simple current mirror and may be regarded as an alter- native to the cascode current mirror discussed in the previous sections. This structure uses a shunt-series type negative feedback in order to enhance the value of the output resistance. The schematic of the circuit is given in Figure 12, while Figure 13 shows its small signal equivalent model.

Figure 12. Schematic of the unbalanced Wilson MOS current mirror

 the output resistance

The output resistance is calculated Iin=0, according to Thevenin’s theorem. The output voltage can be written as a sum of the drain source voltage for the transistors M2 and M3.

VVVout DS2  DS 3 (42)

10

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 13. Small signal model of the unbalanced Wilson MOS current mirror

The drain-source voltage of M2 is

VDS2 I out  I 2 r DS 2  I out r DS 2  g m 2 r DS 2 V DS 2 (43)

Solving this equation for VDS2 leads to

rDS 2 VIDS2   out (44) 1 gm2 r DS 2

Similarly, the drain-source voltage of M3 is written

VDS3 I out  I 3  I 4 r DS 3 (45)

The currents I3 and I4 are functions depending on the output current:

 1 gm1 r DS 1 IgV333333m GS  gVV m G  S  gVV m 312 DS  DS   Igr out m 32 DS   1 gm2 r DS 2  (46) g r I g V  g V  V   g V   I  mb3 DS 2  4mb 3 BS 3 mb 3 B 3 S 3 mb 3 DS 2 out  1 gm2 r DS 2

By replacing the currents into the equation (45), the VDS3 voltage becomes

1 gm1 r DS 1 g mb 3 r DS 2 r DS 3 VDS3 I out r DS 3  I out g m 3 r DS 2 r DS 3   I out  (47) 1gm2 r DS 2 1  g m 2 r DS 2

The output resistance is found after combining equations (42), (44) and (47).

rDS2 g m 1 g m 3 r DS 1 r DS 3 Rout r DS3 1  r DS 3 g m 3  g mb 3 1  g m 1 r DS 1   r DS 3  (48) 1 gm2 r DS 2 g m 2

From the expression of the output resistance it can be noticed that its approximate value is similar to the output resistance of the cascode mirror discussed in the previous paragraphs.  the input resistance The input resistance is calculated with the output shorted to the ground according to Norton’s theorem. If Vout=0, the following relation holds true:

VVVVVout DS3  GS 1 0  DS 3   GS 1 (49)

11

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The drain-source voltage of the transistor M3 and the output current for a grounded output are

VDS3 I out  I 3  I 4 r DS 3 (50)

This equation gives the dependence of the VGS1 gate-source voltage on VGS3 by replacing the following expressions into the equation (50):

VVDS3  GS 1 I g V  3m 3 GS 3  gm3 I4 gmb 3 V BS 3  g mb 3 V B 3  V S 3   g mb 3 V GS 1 VVGS1  GS 3  (51)  1 1 gm2 g mb 3   VVDS2 GS 2 1  I I   g V   V g  rDS2 r DS 3  out2 m 2 GS 2 GS 1 m 2   rDS2 r DS 2 r DS 2 

In the next step the input voltage is written as

Vin I in  I1 r DS 1  I in r DS 1  g m 1 r DS 1 V GS 1 (52)

By inserting the expression of VGS1 from the equation (51) into (53) it results:

g V I r  V  m3 (53) in in DS1 GS 3 1 1 gm2 g mb 3   rDS2 r DS 3

In order to obtain the input resistance, the gate-source voltage VGS3 of the transistor M3 is calculated as a function of the input voltage and the input current.

g VVVVV     m3 (54) GS3 in GS 1 in GS 3 1 1 gm2 g mb 3   rDS2 r DS 3

Solving for VGS3 yields

1 1 g g   m2 mb 3 r r VV  DS2 DS 3 (55) GS3 in 1 1 gm2 g m 3  g mb 3   rDS2 r DS 3

The input resistance is calculated after introducing the expression of VGS3 into the equation (54).

1 1  rDS1 g m 2 g m 3  g mb 3    VinrDS2 r DS 3  g m2 g m 3 R    (56) in 1 1 Iin g m1 g m 3 gm2 g m 3  g mb 3  g m 1 g m 3 r DS 1   rDS2 r DS 3

The approximation of the input resistance holds true if the rDS resistances of the transistors are consi- dered relatively large and the effect of the substrate is neglected. It can be seen that the value of Rin is similar to the input resistance of the cascode current mirror. One of the main drawbacks of the Wilson current mirror is that the minimum allowed input and output voltages are relatively large. Their value can be determined by using similar methods as for the cascode cur- rent mirror.

12

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

VVVomin  Th  2 DSat  (57) VVVimin 2 Th  2 DSat

Another drawback of the circuit is that the drain-source voltages of the transistors M1 and M2 are not equal. This causes significant current gain errors due to the channel length modulation effect. The remedy to this issue is to build a balanced Wilson current mirror. The balanced Wilson mirror is derived from the sche- matic in Figure 12 by connecting a series transistor as a diode in the input branch of the circuit. The resulting structure is presented in detail in the following section.

1.1.5. The balanced Wilson MOS current mirror

The schematic of the balanced Wilson current mirror is presented in Figure 14. The transistors M3 and M4 help improving the precision of the current gain by balancing the drain-source voltages of the fundamen- tal mirror transistors M1 and M2.

Figure 14. Schematic of the balanced Wilson MOS current mirror

The input and the output resistances may be determined by calculations performed on the small signal model shown in Figure 15.

Figure 15. Small signal model of the balanced Wilson MOS current mirror

 the output resistance The output resistance is calculated for similar conditions as in the case of the unbalanced mirror. Due to Thevenin’s theorem, the input current is considered to be zero. The output voltage is written as the sum of the M2 and M3 transistor drain-source voltages.

VVVout DS2  DS 3 (58)

The voltage VDS2 is

VDS2 I out  I 6 r DS 2  I out r DS 2  g m 2 r DS 2 V GS 2 (59)

The transistor M2 is connected as a diode and its gate-source voltage VGS2 is equal to the drain-source

13

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

voltage VDS2. The equality of the two voltages leads to

rDS 2 VIDS2  out  (60) 1 gm2 r DS 2

The drain-source voltage of M3 is expressed in a similar manner:

VDS3 I out  IIr 453  DS  Ir out DS 3333333  grV m DS GS  grV mb DS BS (61)

Since the substrate of M3 is grounded, VBS3= VS3=VDS2 and the equation (61) becomes

gmb3 r DS 2 r DS 3 VDS3 I out r DS 3  g m 3 r DS 3 V GS 3  I out  (62) 1 gm2 r DS 2

In order to find Rout, the gate-source voltage VGS3 must be calculated as a function of the output current and of the transistor parameters. Kirchhoff’s voltage law written for the input voltage leads to

rDS 2 VVVVVVVIin GS3  DS 2  GS 3  in  DS 2  in  out  (63) 1 gm2 r DS 2

Writing Kirchhoff’s voltage law again for the input voltage yields

Vin V DS4  V DS 1  I in  I 1  I 2 r DS 4  I in  I 3 r DS 1 (64)

After setting Iin=0 and replacing the currents from the small signal model we get

Vin  g m4 r DS 4 V GS 4  g mb 4 r DS 4 V BS 4  g m 1 r DS 1 V GS 1 (65)

The voltages in the above equation are

VVVGS1 GS 2  DS 2  VGS4 VVVV G 4  S 4  in  DS 1  VIgVr in  in  m 1 GS 1 DS 1  VgrV in  m 1 DS 1 DS 2 (66)  VVVBS444 B  S   V S 4   V DS 1   IgVrgrV in  m 111112 GS DS  m DS DS

The input voltage from (65) becomes

Vin  g m4 r DS 4 V in  g m 1 r DS 11  g m 4  g mb 4 r DS 4   V DS 2 (67)

The input voltage is then calculated as a function of the output current by replacing VDS2 from (60) and by rearranging the terms in (67).

gm1 r DS 1 r DS 21 g m 4  g mb 4 r DS 4  VIin  out  (68) 1gm2 r DS 2 1  g m 4 r DS 4 

The gate-source voltage VGS3 of the transistor M3 is obtained by inserting the expression of Vin into the equation (63).

g r1 g  g r   rDS 2 m1 DS 1 m 4 mb 4 DS 4  VIGS3   out 1   (69) 1gm2 r DS 2 1  g m 4 r DS 4 

14

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The final expression of the output resistance results after combining (58), (60), (62) and (69).

g r1 g  g r   rDS21 g mb 3 r DS 3  gm3 r DS 3 r DS 2 m1 DS 1 m 4 mb 4 DS 4  Rout r DS3  1   (70) 1gm2 r DS 2 1  g m 2 r DS 2 1  g m 4 r DS 4 

By neglecting the effect of the substrate (gmb=0) and by considering very large rDS resistances, Rout may be approximated as

gm1 r DS 1 g m 3 r DS 3 Rout  (71) gm2

This equation shows that the output resistances of both the balanced and the unbalanced MOS Wilson current mirrors is approximately the same.  the input resistance

The input resistance is calculated for Vout=0, according to Norton’s theorem. The demonstration starts with the input voltage resulting from Kirchhoff’s voltage law, written for the input branch of the mirror.

VVVin DS4  DS 1 (72)

The voltage VDS4 is found from the small signal model in Figure 15. The inspection of the mirror sche- matic shows that, for M4 connected as a diode, the gate-source voltage VGS4 is equal to the drain-source vol- tage VDS4. Furthermore, the substrate terminal of the same transistor is grounded and its VBS4 voltage is equal to the drain-source voltage VDS1 of M1.

VDS4 IgV in  mGS 44  gVr mb 444 BS DS  Ir inDS 4444  grV mDS DS  grV mbDS 441 DS (73)

Rearranging the terms in the above equation leads to

rDS4 g mb 4 r DS 4  VIVDS4 in   DS 1 1   (74) 1gm4 r DS 4 1  g m 4 r DS 4 

The input voltage is a sum of VDS1 and VDS4=f (VDS1). Thus, the VDS1 voltage must be written as a func- tion of the input current Iin and of the input voltage Vin.

VDS1 I in  g m 1 V GS 1 r DS 1  I in r DS 1  g m 1 r DS 1 V GS 1 , (75) where from small signal model

VGS1  V DS 3   I out  g m 3 V GS 3  g mb 3 V BS 3 r DS 3 (76)

The voltages and the output current Iout in the above equation are

VVVVVGS3 G 3  S 3  in  GS 1  VVVVVV         BS3 B 3 S 3 S 3 DS 2 GS 1 (77) V r I g V DS2  V  DS 2  out m2 GS 2 GS 1  rDS21 g m 2 r DS 2

Replacing the expressions of the voltages and of the output current from (77) into (76), leads to the following equation:

15

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

rDS31 g m 2 r DS 2  VGS1 g m 3 r DS 3 V in  V GS 1  g mb 3 r DS 3 V GS 1   V GS 1 (78) rDS 2

This equation can be readily solved for VGS1. The solution is the expression of VGS1 as a function of Vin.

gm3 r DS 2 r DS 3 VVGS1  in  (79) rDS2 r DS 3  g m 2  g m 3  g mb 3 r DS 2 r DS 3

By replacing VGS1 into (75) we get

gm1 g m 3 r DS 1 r DS 2 r DS 3 VDS1 I in r DS 1  V in  (80) rDS2 r DS 3  g m 2  g m 3  g mb 3 r DS 2 r DS 3

Then, successively replacing VDS1 in (74) and (72) yields

  gmb4 r DS 4  g m 1 g m 3 r DS 1 r DS 2 r DS 3  r DS 4  Vin1 1      I in  r DS1   (81) 1grrrgggrrm442323323 DS  DS  DS  m  m  mb DS DS   1  gr m 44 DS 

The input resistance and its approximation for gmb4=0 and large rds result

r r  DS 4 DS1 1g r g  g R m4 DS 4  m 2 m 3 (82) in g r  g g r g g 1 1 mb4 DS 4  m 1 m 3 DS 1 m1 m 3   1 1 1 gm4 r DS 4   gm2  g m 3  g mb 3 rDS2 r DS 3

The calculated input and output resistances given in (82) and (71) show that the balanced Wilson and the cascode current mirrors have similar parameters while both suffer from relatively large biasing voltage requirements.

1.2. Bipolar transistor current mirrors

Bipolar current mirrors are built with the same circuit topologies as their MOS counterparts. The main differences in operation are caused by the finite base-emitter resistances of the transistors and the correspon- ding current losses in the base terminals.

1.2.1. The simple bipolar current mirror

The schematic of the simple current mirror implemented with bipolar transistors is given in Figure 16.

Figure 16. Schematic of the simple bipolar transistor current mirror

The current gain of the mirror can be analyzed by considering the non-zero base currents of the tran-

16

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors sistors, the emitter area (translated to saturation current) mismatch and the difference between the input and the output voltages. The calculation of n starts with the expressions of the collector currents IC1 and IC2.

V  BE1 V  VT CE1 ICS1 I 1  e 1    VEA  (83)  V BE 2 V   VT CE2 ICS2 I 2  e 1    VEA 

The base-emitter voltages of the transistors are equal due to the circuit topology. Calculating the ratio of the two collector currents leads to

IVVVVIVVS2 EA CE 2  CE 1  CE 1 S 2 CE 2  CE 1  IIICCC2 1    1  1   (84) IVVIVVS1 EA CE 1 S 1 CE 1  EA 

The input current is determined by writing Kirchhoff's current law at the input node:

II IIIII    CC1  2  in C1 B 1 B 2 C 1   (85) 1 IVVS2 CE 2  CE 1  IICC11    1  1      IVVS2 EA CE 1 

The output current can be identified from the schematic as Iout=IC2. In this case the current gain results:

I V  S 2 1   IIout C2 IVVS1 EA CE 1  n    , (86) IIin in 1 I V  1 S 2  1     IVVS1 EA CE 1  where ΔV=VCE2-VCE1=Vout-Vin is the input-output voltage imbalance. Ideally, if the transistor β approaches in- finity and the mirror is balanced in voltage, the current gain only depends on the emitter ratios of Q2 and Q1. If the input and the output voltages are balanced and β is finite, the current gain becomes

I A  n S 2  2  (87) IAS12 1   2

 the input resistance The input resistance is calculated from the small signal model illustrated in Figure 17. The diode con- nection of the Q1 transistor, the base-emitter voltage VBE1 is equal to the collector-emitter voltage VCE1. Con- sequently, the current provided by the gm1VBE1 source is defined by the voltage across the source's own termi- nals. In this case, the source obeys Ohm's law and is transformed into a simple resistance with R=1/gm1 (see the second model in Figure 17). The input resistance of the mirror is then simply written

Vin 1 1 Rin || r BE1 || r CE 1 || r BE 2  (88) Iin g m1 g m 1

The expression above shows that, if the base-emitter and collector-emitter resistances are considered to be very large, typically much larger than 1/gm, then the input resistance of the mirror is approximately the same as the Rin of the MOS implementation.

17

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 17. Small signal model of the simple bipolar transistor current mirror

 the output resistance The output resistance of the simple bipolar current mirror is the output resistance of the source imple- mented with the transistor Q2.

Vout Vout I out  g m2 V BE 2 r CE 2  I out r CE 2  R out   r CE 2 (89) Iout

The practical lowest output voltage of the mirror is defined by the biasing condition of the Q2 tran- sistor in the forward active region and is approximately equal to VBE2.

1.2.2. The simple bipolar current mirror with β compensation

The bipolar current mirror with β compensation (sometimes mentioned as emitter follower augmented) is a solution meant to improve the precision of the current gain by increasing the effective β of the transistors in the simple current mirror. The schematic of the circuit is given in Figure 18.

Figure 18. Schematic of the simple bipolar current mirror with β compensation

The purpose of the Q3 transistor is to decrease the current loss in Iin caused by the base currents of Q1 and Q2. The current gain n is determined in a similar manner as for the simple bipolar mirror. The collector currents of Q1 and Q2 are written again

V  BE1 V  VT CE1 ICS1 I 1  e 1    VEA  (90)  V BE 2 V   VT CE2 ICS2 I 2  e 1    VEA 

The input current is

18

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

IIIII  IIIIII   ECC3  BB1 2   1 2 (91) in C1 B 3 C 11 C 1   1 C 1    1

After replacing IC2 from the equation (84), the collector current of Q1 becomes

I I  in (92) C1 1 IVV  1 S2 1  CE 2 CE 1   1    1 IVVS1 CE 1  EA 

The equation (84) can be used again, this time to express Iout=IC2 as a function of Iin. The current gain is then

I V  S 2 1   IIout C 2 IVVS1 EA CE 1  n    (93) IIin in 1 I V  1 S 2  1    1    1 IVVS1 EA  CE 1 

By comparing equations (86) and (93) it results that the β of Q1 and Q2 have been replaced by the en- hanced gain β(β+1). If the input and the output voltages are balanced, then the gain will exhibit a weak de- pendence on β according to

2 IS 2   n   2 (94) IS1    2

 the input resistance The input resistance is calculated from the small signal model given in Figure 19.

Figure 19. Small signal model of the simple bipolar transistor current mirror with β compensation

The input voltage of the mirror is

VVVin BE1  BE 3 (95)

The base-emitter voltages VBE1 and VBE3 of Q1 and Q3 can be found by writing Kirchhoff's current law at the input and at the base of Q1. The sum of currents at the input node is

VVin BE3 Iin g m1 V BE 1   (96) rCE1 r BE 3

19

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Similarly, the sum of currents at the Q3 base terminal is

VBE3 VVVBE1 BE 1 BE 1 gm3 V BE 3    (97) rBE3 r CE 3 r BE 1 r BE 2

By rearranging the terms in equation (97), the base-emitter voltage VBE1 results as a function of VBE3.

1  1 1 1   1  VBE1 V BE 3 g m 3       V BE 3  g m 3   r BE 1|| r BE 2 || r CE 3  (98) rBE3  r BE 1 r BE 2 r CE 3   r BE 3 

In the next step VBE1 can be replaced in (96) which leads to

V I  in in r V  CE1 (99) BE3 1 1  gm1 g m 3   r BE 1|| r BE 2 || r CE 3  rBE3 r BE 3 

The base-emitter voltage of Q1 is then

Vin 1  Iin  g m3   r BE 1|| r BE 2 || r CE 3  rCE1  r BE 3  V  (100) BE1 1 1  gm1 g m 3   r BE 1|| r BE 2 || r CE 3  rBE3 r BE 3 

The input resistance results by inserting equations (99) and (100) into (95) and expressing the ratio of the input voltage to the input current.

1  1gm3   r BE 1 || r BE 2 || r CE 3  Vin rBE3  1 Rin    (101) Iin1 1 1  1  g m1  gm1   g m 3   r BE 1|| r BE 2 || r CE 3  rBE3 r CE 1 r CE 1  r BE 3 

The expression of the input resistance is rather complicated, but if rBE and rCE of the transistors are considered to be very large, then the approximated Rin is the same as for the fundamental current mirror.  the output resistance The output stage of the mirror has not been changed by the β compensation transistor. Consequently, the output resistance remains the same and is Rout=rCE2. The lowest allowed output voltage required for bia- sing the transistors is also identical

1.2.3. The simple bipolar current mirror with resistive degeneration

The bipolar current mirror with resistive degeneration is a form of the fundamental current mirror in which the degeneration resistor is added for higher output resistance and for lower sensitivity of the gain to the input-output voltage imbalance. The schematic of the mirror is given in Figure 20. If the transistors are perfectly matched and their collector currents are considered to be equal (β very large) then VBE1=VBE2 and Kirchhoff's voltage law leads to the expression of the current gain.

Iout R1 VBE1 I in R 1  V BE 2  I out R 2  n   (102) IRin 2

20

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 20. Schematic of the simple bipolar current mirror with resistive degeneration

The equation (102) holds true only if the base emitter voltages are equal. This condition translates to identical emitter areas for Q1 and Q2. If a current gain other than unity is necessary, the emitter areas must be scaled proportionally with the resistance ratio in order to let VBE1 and VBE2 to be maintained equal.

RAI n1 S 2  2  n (103) RIA2S 1 1

If the condition in (103) is fulfilled, then the current gain is relatively independent of the input-output voltage imbalance and the finite β of the transistors. This can be seen by plotting the variation of n with the voltage imbalance as illustrated in Figure 21. The current gain remains approximately constant over a wide range of voltage differences as long as the output transistor is correctly biased in the forward active region.

Figure 21. Variation of the degenerated bipolar current mirror gain against the input- output voltage imbalance

 the input resistance The input resistance is calculated from the small signal model given in Figure 22. The output voltage is considered to be Vout=0 according to Norton’s theorem.

Figure 22. Small signal model of the simple bipolar transistor current mirror with re- sistive degeneration

21

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The Q1 transistor is connected as a diode and VBE1=VCE1. Therefore, the current source gm1VBE1 is con- trolled by the voltage drop across its own terminals and the source can be replaced by an equivalent resis- tance 1/gm1. Kirchhoff’s voltage law written for the input node yields

VRBE2 2 VVIRin BE2  out 2  (104) rBE2

After rearranging the terms the output current can be expressed as a function of VBE2.

Vin 1 1  IVout  BE2    (105) R2 R 2 rBE 2 

The input voltage is also

VBE2  Vout I out  g m2 V BE 2 r CE 2  I out   R 2  0 (106) rBE2 

Replacing Iout with (105) in (106) leads to the Q2 base-emitter voltage VBE2 written as a function of Vin.

Vin r CE2 R 2  VBE2  (107) rCE2 r CE 2  R21 gm 2 r CE 2    R2 rBE 2 

In order to find the input resistance, the input voltage Vin is written as a function of Iin, Iout and VBE2.

VBE2  1   Vin I in    R1  || r BE 1 || r CE 1   (108) rBE2   g m 1  

Next, VBE2 is replaced with (107), and the terms in equation (108) will only depend on Vin and Iin. The input resistance is then

1  R1 || rBE 1 || r CE 1  Vin gm1  1 RRin   1  (109) Iin1   g m1 R1|| rBE 1 || r CE 1   r CE 2  R 2  gm1  1   r R  r r R  g r R  CE2 2 BE2 CE 2 2 m 2 CE 2 2 r  BE2  1

If the rCE and rBE resistances of the transistors are considered to be much larger than 1/gm1 and R2, then the input resistance is approximated by the sum of the diode resistance 1/gm1 and the passive resistance R1.  the output resistance The output resistance is determined from the same small signal model in Figure 22, but this time the input current is considered to be Iin=0, according to Thevenin’s theorem. Kirchhoff’s voltage law written at the output node gives

VBE2  Vout I out  g m2 V BE 2 r CE 2  I out   R 2 (110) rBE2 

22

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The base-emitter voltage of Q2 is found by using the expression of the input voltage

VV    1   V V  I BE2 R  I  BE 2 R  || r || r (111) in BE2 outr  2  in r   1 g BE 1 CE 1   BE2  0 BE 2   m 1  

If Iin=0, then VBE2 is a function of Iout

R  VI  2 (112) BE2 out 1  ||r || r  RR g BE1 CE 1 12  1  m1    rBE2 r BE 2 r BE 2 

After replacing VBE2 in the equation (110), the output resistance results

1 

R2  R2 gm 2 r CE 2   Vout rBE2  R  r  R   r  R  g r R (113) outI CE2 21 CE 2 2 m 2 CE 2 2 out ||r || r RR g BE1 CE 1 12  1  m1 r r r BE2 BE 2 BE 2 1

The equation above shows that, as expected, the output resistance resembles the Rout of a simple MOS current source with resistive degeneration. The lowest required output voltage must satisfy the biasing condition of Q2 in the forward active re- gion and must also cover the voltage drop across the R2 resistor. In low voltage applications the passive re- sistor degeneration is often effectively replaced by a cascode structure.

1.2.4. The bipolar cascode current mirror

The topology of the bipolar cascode current mirror is identical with the topology of the MOS version. The circuit is illustrated in Figure 23.

Figure 23. Schematic of the bipolar cascode current mirror

The current gain is determined in a similar manner as for the previously discussed bipolar mirrors. The finite β and the input-output voltage imbalance will influence the accuracy of the current gain. The input current of the mirror results from Kirchhoff’s current law at the input node:

I IIIII     E4 (114) in C3 B 3 B 4 E 3  1 IE 3

23

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

The emitter currents of Q3 and Q4 can be identified from the schematic as

 IICC1 2 IIIIIECBBC3 1  1  2  1      (115)  IIEC4 2

The input current is then

1   1 1  IIIin C11    C 2    (116)      1 

By using the equation (84) that relates IC2 and IC1 in the fundamental mirror Q1-Q2 the input current be- comes

1IVVS2 1 1  CE 2  CE 1   IIin C1 1     1    (117) IVVS1   1  CE 1  EA  

The output current can be written as

 IVVS2 CE 2 CE 1   IIIIIout C4  E 4   C 2   C 1 1    (118) 1   1IVVS1 CE 1  EA    1

The current gain results by calculating the ratio of Iout to Iin from equations (117) and (118).

IVVS2 CE 2 CE 1   1   Iout IVVS1 CE 1  EA   1 n   (119) Iin 1IVVS2 CE 2 CE 1  2  1 1  1    IVVS1 CE 1  EA    1

If the transistors are identical and their VBE voltages are approximately equal, then the cascode pair Q3- Q4 balances the fundamental mirror’s input and output voltages. It results that VCE1=VCE2 and n is not sensi- tive to the mirror voltage imbalance. However, the finite β of the transistors causes an input current loss and influences the current gain according to

 2 n  (120) 2 4   2

 the input resistance The input resistance is calculated for a grounded output from the small signal model in Figure 24. The gmVBE voltage controlled current sources, corresponding to transistors Q1 and Q3 in diode connection, can be replaced by a 1/gm type resistance (the same as for a simple bipolar mirror). Then, the small signal model can be simplified as shown in Figure 25, where the equivalent resistances R1 and R3 are

 1 1  R1|| rBE 1 || r CE 1 || r BE 2   gm1 g m 1  (121) 1 1 R|| r || r   3BE 3 CE 3  gm3 g m 3

The input voltage is given by Kirchhoff’s voltage law written for the input node.

24

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 24. Small signal model of the bipolar cascode current mirror

Figure 25. The simplified small signal model of the bipolar cascode current mirror

VBE4  VIRRin in   1  3  (122) rBE4 

The base-emitter voltage of Q4 is readily found to be

Vin  VBE4 r BE 4  I in   (123) RR1 3 

The small signal model shows that the resistors R1 and R3 act as a voltage divider for the input voltage. Consequently, the divider output voltage, equal to VBE1 and VBE2, is

R1 VVVBE1 BE 2  in  (124) RR1 3

Writing again Kirchhoff’s voltage law for the input node, this time along the path rBE4-Q2, leads to

VBE4  Vin V BE4  V CE 2  V BE 4  I out   g m 2 V BE 2  r CE 2 (125) rBE4 

Similarly, the output voltage is

VBE4  Vout I out  g m4 V BE 4 r CE 4  I out   g m 2 V BE 2  r CE 2  0 (126) rBE4 

The input resistance Rin is found by inserting VBE2 and VBE4 of equations (123) and (124) into (125) and (126) and then eliminating Iout. After the calculations Rin results

25

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

r r1 g r  BE4  CE4 m 4 BE 4 Vin r CE2 r CE 2 r CE 4 Rin   (127) Iin 1 gm2 g m 3 g m 1 g m 3 rBE4 rCE41 g m 4 r BE 4        rCE2 g m 1 g m 3 r CE 2  r CE 4 g m 1  g m 3 r CE 2 r CE 2  r CE 4 

This rather complicated expression can be simplified significantly if the rBE and rCE resistances of the transistors are considered to be very large, typically much larger than 1/gm.

gm4 r BE 4 r CE 4 r r g g 1 1 R CE2 CE 4  m 1 m 3   (128) in g g r g  g g g g m1 m 3 CE 4 m 2  g r m1 m 3 m 1 m 3  g g r  r  g m4 BE 4  m1 m 3 CE 2 CE 4 m 1 1  1 

If the current gain β of the transistors is sufficiently large and the base currents are neglected, the input resistance of the bipolar cascode mirror is approximately the same as for the MOS implementation.  the output resistance The output resistance is determined from the same simplified small signal model given in Figure 25. The input current is set to Iin=0 according to Thevenin’s theorem. The equivalent resistances R1 and R3 have the same significance defined in (121). The base potentials of the transistors Q1 and Q2 are found by cancelling the input current and writing the voltage drop across R1:

R1 VVVBE1 BE 2    BE 4 (129) rBE4

Similarly, the input voltage, equal to the base potentials of Q3 and Q4, can be found from Kirchhoff’s voltage law written along the resistances R1 and R3.

VBE4 VVVRRin B3  B 4    1  3  (130) rBE4

Writing again the sum of voltages at the input node, this time along rBE4 and the transistor Q2, leads to

VBE4  Vin V B3  V B 4  V BE 4  I out   g m 2 V BE 2  r CE 2 (131) rBE4 

Equaling the expressions of Vin from (130) and (131) yields

I r V   out CE2 (132) BE4 R R r g r R 11 3 CE 2  m 2 CE 2 1 rBE4 r BE 4 r BE 4

The output voltage is given by Kirchhoff’s voltage law written for the output node:

VBE4  Vout I out  g m4 V BE 4 r CE 4  I out   g m 2 V BE 2  r CE 2 (133) rBE4 

Now VBE2 of (129) and VBE4 of (132) can be replaced into the expression of the output voltage. After rearranging the terms depending on Vout and Iout, the output resistance results

26

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

rCE21 g m 2 R 1   rCE2 g m 4 r CE 4   Vout rBE4  R  r  r   r  r  g r r (134) outI CE2 CE 4R r R1 g r  CE 2 CE 4 m 4 CE 4 CE 2 out 13 CE 2  1m 2 CE 2 rBE3 r BE 4 r BE 4

If the rBE and rCE resistances of the transistors are very large then the output resistance of the bipolar cascode current mirror has the same form as its MOS counterpart. The practical minimum output voltage requirement of the bipolar cascode mirror is set by the correct biasing condition of both, Q2 and Q4, transistors in the forward active region and is typically around 2VBE.

1.2.5. The bipolar Wilson current mirror

The topology of the bipolar Wilson current mirror is identical with the MOS implementation presented in Figure 12. The MOS transistors have been replaced by bipolar transistors and the resulting schematic is gi- ven in Figure 26.

Figure 26. Schematic of the bipolar Wilson current mirror

The current gain is calculated by writing Kirchhoff's current law in each circuit node and considering the finite β of the transistors and the collector-emitter voltage imbalances.

IIII IIIII   ECCC3   2  2  1 (135) in C1 B 3 C 11 C 1   1    1    1

Regrouping and rearranging the terms of the above equation yields

1  I II1   C 2 (136) in C1    1  

Now recall the relation (84) between IC1 and IC2, valid for the fundamental bipolar mirror Q1-Q2:

IVVS2 CE 2 CE 1  IICC2 1  1   (137) IVVS1 CE 1  EA 

The input current Iin is then a function of only IC1 according to

  1 IVVS2 CE 2 CE 1  IIin C1 1    1    (138)  1  IVVS1 CE 1  EA  

The output current of the mirror Iout is

27

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

  IIIIII      (139) out C31 E 3   1 C 2 B 2 B 1

Expressing IB1 and IB2 as functions of IC1 and IC2 leads to

  IIVVC11 S 2 CE 2 CE 1  IIIout C2   C 1   1    (140) 1   1 IVVS1 CE 1  EA  

The current gain results by calculating the ratio Iout/Iin from the equations (138) and (140).

1 IVV  S2 1  CE 2 CE 1  Iout  1 IVVS1 CE 1  EA  n   (141) Iin 1 IVV  1 S2  1  CE 2 CE 1   1  IVVS1 CE 1  EA 

The VCE1 voltage can never be equal to VCE2 due to topology imposed constraints. From the schematic results that the identity VCE1=VCE2+VBE3 holds true and the voltage imbalance of the fundamental mirror Q1- Q2 is ΔV=VBE3. The current gain n is then affected by both the finite β and the voltage imbalance.  the input resistance

The input resistance is calculated for Vout=0 according to Norton's theorem. The calculations are per- formed on the small signal model given in Figure 27.

Figure 27. Small signal model of the bipolar Wilson current mirror

The transistor M2 is connected as a MOS diode, its base-emitter voltage being equal to the collector- emitter voltage. Consequently, the current delivered by the source gm2VBE2 in the small signal model will be controlled by the voltage drop across the source's own terminals and the source can be replaced by a resis- tance taking the value 1/gm2. It results, that the resistances rBE1, rBE2, 1/gm2 and rCE2 will be all connected in parallel, forming the equivalent resistance R2.

1 1 R2 rBE 1|| r BE 2 || || r CE 2  (142) gm2 g m 2

The small signal model is then simplified as shown in Figure 28. Kirchhoff's voltage law written for the input node gives

VVVin BE2  BE 3 (143)

The base-emitter voltage VBE2 may be expressed from the output branch of the mirror as shown in the equation (144).

28

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 28. The simplified small signal model of the bipolar Wilson current mirror

VBE3  VRIBE2 2  out   (144) rBE3 

The input voltage from the equation (143) becomes

VBE3  R2  VRIVRIVin2 out    BE 3  2 out  BE 3 1   (145) rBE3   r BE 3 

The output current results after writing Kirchhoff's voltage law for the output node.

VBE3  VrIgVout CE3 out  m 3 BE 3  V BE 2  rIgrV CE 3 out  m 3 CE 3 BE 3  RI 2  out    0 (146) rBE3 

This equation is solved for Iout:

gm3 r CE 3 r BE 3 R 2 IVout  BE3 (147) rBE3 r CE 3 R 2 

After inserting Iout into the expression (145) and rearranging the terms, VBE3 results

Vin r BE3 r CE 3 R 2  VBE3  (148) rBE3 r CE 3 R 2  r CE 3 R 21  g m 3 r BE 3 

The Vin voltage can be again calculated by writing Kirchhoff's voltage at the input node, this time on the path through Q1.

VBE3  Vin r CE1 I in   g m 1 V BE 1  (149) rBE3 

By considering VBE1=VBE2 and successively eliminating VBE2, VBE3 and Iout from the equations, the input voltage Vin can be written as a function of the input current Iin, and the input resistance results

V 1 R in  (150) in I 1 1 in  g1  g r  1 R r m1 m 3 BE 3  2CE 3 rCE1 1 1  1rBE3   g m 3  R2 rCE 3 

29

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

If the rBE and rCE resistances are considered to be very large and R2=1/gm2, the Rin can be approximated

gm2 g m 3 Rin  , (151) gm1 g m 3 which is the same expression as obtained for the MOS implementation of the Wilson mirror.  the output resistance The output resistance is calculated from the same simplified small signal model in Figure 28 where the input current is Iin=0 according to Thevenin's theorem. Kirchhoff's voltage law written for the output node gives the equation

Vout r CE3 I out  g m 3 V BE 3  V BE 2 (152)

The unknown voltages in this equation are VBE2 and VBE3. The base-emitter voltage of Q2 can be identi- fied from the small signal model as a function of VBE3 and the output current Iout.

VBE3  VRIBE2 2  out   (153) rBE3 

In the next step the input voltage Vin is written by using Kirchhoff's voltage law at the input node.

R2  VVVIRVin BE2  BE 3  out 2  BE 3 1   (154) rBE3 

An alternative expression of the input voltage is found by applying Kirchhoff's voltage law along the transistor Q1.

V  r V r I  g V BE3    g r V  CE 1 V (155) in CE1 in m 1 BE 1 m 1 CE 1 BE 2 BE 3 rBE3  r BE 3 0 VBE 2 

Replacing VBE2 with its expression from (153) leads to

rCE1 g m 1 r CE 1 R 2 Vin  g m1 r CE 1 R 2 I out  V BE 3  (156) rBE3

The base-emitter voltage of Q3 results as a function of Iout after matching the two expressions of Vin from the equations (154) and (156).

I V   out (157) BE3 1r  1 1  CE1    rBE3 R 21 g m 1 r CE 1  r BE 3 r CE 1 

The voltage VBE3 is the inserted into the equation (153) of VBE2 yielding

I V  out (158) BE2 1 1 g r  m1 CE 1 R2 rBE 3 r CE 1

Now, VBE2 and VBE3 can be replaced in the expression (152) of Vout. As all terms are functions of either

30

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Iout or Vout, the output resistance results

Vout g m3 r CE 3 1 Rout  r CE3   (159) I 1r  1 1  1 1 gm1 r CE 1 out CE1     R r r rBE3 R 21 g m 1 r CE 1  r BE 3 r CE 1  2BE 3 CE 1

If rBE and rCE resistances are considered to be very large and R2 is equal to 1/gm2, the output resistance can be approximated as

g r R r  m3 CE 3 (160) out CE3 1g  1 1  m2    rBE3 g m 1 r BE 3 r CE 1 

Since the transistors Q1 and Q2 are identical and their collector currents are very similar, the transcon- ductances gm1 and gm2 can be also considered to be equal. The output resistance can further be simplified

gm3 r CE 3 r CE 1 r BE 3 Rout  (161) 2rCE1 r BE 3

If the base-emitter resistance rBE3 approaches infinity, the output resistance will have the same appro- ximated expression as the MOS implementation of the mirror. The lowest allowed output voltage is defined by the correct biasing of all transistors in the forward active region. The schematic of the mirror suggests that practical Wilson mirrors require around 2VBE voltage to operate correctly.

1.2.6. The balanced bipolar Wilson current mirror

The Wilson current mirror in Figure 26 can be balanced in order to reduce the sensitivity of the current gain to the input-output voltage mismatch. The symmetry of the mirror is achieved by inserting a fourth tran- sistor (Q4) into the scheamtic as shown in Figure 29.

Figure 29. Schematic of the balanced bipolar Wilson current mirror

The current gain of the balanced Wilson mirror can be found bys performing a similar derivation as for the unbalanced implementation. The finite transistor β-s and the voltage mistmatch of the fundamental mirror Q1-Q2 are taken into account. The current Iin can be written by applying Kirchhoff's current law at the input node.

 II II IIIII   EE4  4 EE3   3 (162) in C4 B 4 B 31   1   1 E 4   1

By replacing IE4 with IC1 and IE3 with IC2+IB1+IB2 the input current becomes

31

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

IIII2   1 III CCCC2  1  2    2 (163) in C11    1    1 C 1    1 

Considering the relation (84) between IC1 and IC2 of the fundamental mirror Q1-Q2,

IVVS2 CE 2 CE 1  IICC2 1  1   , (164) IVVS1 CE 1  EA  leads to

2    1 IVVS2 CE 2 CE 1  IIin C1   1    (165)  1  IVVS1 CE 1  EA  

The output current can now be written

 IIIIECCC3   1 2  1 IIIIIIIout C3   C 2  B 1  B 2  C 2     C 2  (166) 1   1   1      1

By using again the equation (84), the output current will be

  1 IVVS2 CE 2 CE 1  IIout C1   1    (167)  1 IVVS1 CE 1  EA  

The current gain results after dividing the output current of (167) to the input current of (165)

1 IVV  S2 1  CE 2 CE 1  Iout  1 IVVS1 CE 1  EA  n   (168) 2 Iin   1 IVV  S2 1  CE 2 CE 1   1  IVVS1 CE 1  EA 

The voltages VCE1 and VCE2 are equal due to the symmetrical cascode transistors. If all transistors are identical, then the current gain is independent on the voltage mismatch and can be written

2  2  n  (169) 2 2   2

 the input resistance

The input resistance is calculated from the small signal model given in Figure 30, where Vout=0 accor- ding to Norton's theorem. The initial small signal model can be further simplified. Recall that for diode con- nected transistors VBE=VCE and the current through the device is defined by the voltage drop across its own terminals. Consequently the transistor is simply replaced by a 1/gm type resistance in the small signal model. By replacing Q4 and Q2 with the appropriate resistors, the model in Figure 30 can be simplified as illustrated in Figure 31. The equivalent resistances R2 and R4 are identified as

 1 1 R2 rBE 1|| r BE 2 || r CE 2 ||   gm2 g m 2  (170) 1 1 R r|| r ||   4BE 4 CE 4  gm4 g m 4

32

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

Figure 30. Small signal model of the balanced bipolar Wilson current mirror

Figure 31. The simplified small signal model of the balanced bipolar Wilson current mirror

Kirchhoff's voltage law, written for the input branch of the mirror, gives

VVVin BE3  BE 2 (171)

A first relation between VBE2 and VBE3 can be obtained by writing VBE2 as the voltage drop across the terminals of the resistor R2.

VBE3  VRIBE2 2  out   (172) rBE3 

The second equation is

Vout r CE3 I out  g m 3 V BE 3  V BE 2  0 (173)

After inserting VBE2 of (172) into (173), the base-emitter voltage VBE3 of Q3 becomes

Iout r CE3 R 2  VBE3  (174) R2 gm3 r CE 3  rBE3

The VBE2 voltage is then

Iout R2 r CE 31 g m 3 r BE 3  VBE2  (175) gm3 r CE 3 r BE 3 R 2

Replacing VBE2 and VBE3 in the equation (171) leads to the expression of the output current as a func- tion of Vin.

33

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

gm3 r CE 3 r BE 3 R 2 IVout in  (176) rBE3 r CE 3 R 2  R 2 r CE 31  g m 3 r BE 3 

VBE2 and VBE3 are then

 1   Vin g m3   r V  BE3   BE2 1 1 1     gm3  R2 rCE 3 r BE 3  (177)  1 1  Vin    r R V  CE3 2  BE3 1 1 1     g  m3  R2 rCE 3 r BE 3

The input resistance is found by writing Kirchhoff's voltage law along the path R4-Q1.

VVBE3   BE 3  Vin R4 I in    r CE 1  I in  g m 1 V BE 1   (178) rBE3   r BE 3 

Next the VBE1=VBE2 and VBE3 voltages are replaced with their expressions from (177). In this case, the input resistance results

V 1 R in  (179) in I 1 1 g r in  m1 CE 1 1  g r  1 R r r R m3 BE 3  2CE 3 CE 1 4 rCE1 R 4 1 1 1  rBE3 g m 3     R2 rCE 3 r BE 3 

If rBE and rCE are considered to be very large, the Rin can be approximated as

1 g g R   m2 m 3 (180) in 1 g g g r g g  m2 m 1 m 3 BE 3 m1 m 3 rCE1 r BE 3 g m 2 g m 3 

 the output resistance

The output resistance is calculated from the same simplified small signal model in Figure 31 for iin=0 according to Thevenin's theorem. First, the output voltage is written along the output branch of the mirror.

Vout I out  g m3 V BE 3 r CE 3  V BE 2 (181)

The base-emitter voltage VBE2 is found from the model by writing the current through R2 and applying Ohm's law.

VBE3  VIRBE2 out   2 (182) rBE3 

Now, Kirchhoff's voltage law is written twice for the input voltage, once along the rBE3 and the R2 re- sistances and next along the input branch of the mirror.

34

Analog Integrated Circuits – Fundamental Building Blocks Current mirrors

VVVin BE3  BE 1   VV    (183) V I BE3  R   I  BE 3  g V  r  in inr 4  in r m 1 BE 1  CE 1  0BE3    0 BE 3 

By eliminating VBE1=VBE2 from the equations (182) and (183), the VBE3 voltage results as a function of the output current.

I1 g r  V   out m1 CE 1 (184) BE3 1 1 R r g r  4CE 1  m 1 CE 1 R2 rBE 3 R 2 r BE 3 r BE 3

Replacing this VBE3 into the equation (182) leads to the expression of VBE1=VBE2.

R4 rCE 1  Iout 1  rBE3  VV  (185) BE1 BE 2 1 1 R r g r  4CE 1  m 1 CE 1 R2 rBE 3 R 2 r BE 3 r BE 3

Finally, VBE2 and VBE3 are inserted into (181) and the output resistance results

R r 14CE 1 g r 1  g r  r m3 CE 3 m 1 CE 1 R r  BE3 (186) out CE3 1 1 R r g r  4CE 1  m 1 CE 1 R2 rBE 3 R 2 r BE 3 r BE 3

If the resistances rBE - rCE are considered to be very large and gm1 is equal to gm2, then the simplified expression of Rout is

gm3 r CE 3 r CE 1 r BE 3 Rout  , (187) 2rCE1 r BE 3 which is identical to the approximated output resistance of the unbalanced Wilson mirror. In practical implementations both the input and the output voltages must be larger than 2VBE in order to accommodate the correct biasing of all transistors in the forward active region.

Bibliography

1. P.E. Allen, D.R. Holberg, CMOS Analog Circuit Design, Oxford University Press, 2002 2. B. Razavi, Design of Analog CMOS Integrated Circuits, McGraw-Hill, 2002 3. D. Johns, K. Martin, Analog Integrated Circuit Design, Wiley, 1996 4. P.R.Gray, P.J.Hurst, S.H.Lewis, R.G, Meyer, Analysis and Design of Analog Integrated Circuits, Wiley,2009 5. R.J. Baker, CMOS Circuit Design, Layout and Simulation, 3rd edition, IEEE Press, 2010

35