Professional Documents
Culture Documents
2. Syllabus
SPICE internals and algorithms SPICE semiconductor models o Diode o BJT o MOSFET
3. Problem Sheet
An exercise done in SPICE in the labs which gets you used to the SPICE model parameters, and shows you some of the dynamic effects of devices that you have seen the theory for in the first part of the course.
4. Recommended Reading
This part of the devices course is relatively self contained. If, however, you want to know more about SPICE, the following are good books: Semiconductor Device Modelling with SPICE, Giuseppe Massobrio and Paolo Antognetti, McGraw-Hill Inc. Inside SPICE, overcoming the obstacles of circuit simulation, Ron Kielkowski, McGraw-Hill Inc. SPICE for circuits and electronics using PSpice, Muhammad H. Rashid, Prentice Hall
5. Introduction
You received an introduction to SPICE in the first year design project. Briefly, to remind you of the history and development of the software: SPICE (Simulation Program with Integrated Circuit Emphasis) is a well-known circuit simulator computer program which began with a mainframe program written at UC Berkeley by Lawrence Nagel (and others) during his PhD. The SPICE solver or engine (the core part of the program i.e. the part that solves the circuit equations) is free software but it is command line driven and is thus regarded as difficult to use. Consequently, several commercial versions (mostly based on the 2G7 release of the Berkeley program [PSpice is based on 2G7]) are available which provide a graphical interface and up to date component libraries (models of commercially available semiconductor components provided by the semiconductor manufacturers). In this part of the course we will look briefly at the internal workings of SPICE, the semiconductor models that are used and how they relate to the device theory you have already studied.
6. How SPICE solves circuit bias points a first stage of the simulation process
Why do we care how SPICE works internally? Because when things go wrong with a simulation, having some insight into the operation of the program helps you figure out how to make your simulation run and also allows you to use the program in a more efficient way. We will look in detail at how SPICE solves DC bias point simulations and then look briefly at some other types of simulation. We do it this way because the DC type calculations are fundamental to the operation of the other types of simulation and (with the exception of transient simulations) it is easy to extend the DC analysis that SPICE does to the other types of analysis.
I1 R1 R2 R3 R4
n0 n1 n0 n2 n0
n1 n2 n2 n3 n3
3 5 10 5 10
Figure 1 Simple circuit with current source excitaiton
3+
V1 V2 =0 5
3
V2 V1 V2 V2 V3 + + =0 5 10 5 V3 V2 V3 + =0 5 10
You can see that this matrix is very easy to solve on computer, no matter how big it is. In essence, SPICE always tries to solve for nodal voltages which satisfy KCL by forming an equation of the form:
[G ] [V ] = [I ]
Note that the current matrix is known. For many equations, the entry in the current matrix will be zero as KCL requires currents into a node sum to zero), but it will be non-zero if an active device, such as a current source, is present. In other words, the I matrix lists the current being actively injected into each node. Changing the current source for a voltage source makes it harder to solve(!) because it does not fit into our nice simple framework quite so easily. You might initially think that we could reformulate the expressions in the form of:
[R ] [I ] = [V ]
And then do Gaussian elimination to solve for the current matrix Consider the circuit below and the equivalent nodal equations V1 V2 =0 5 V2 V1 V2 V2 V3 + + =0 5 10 5 V3 V2 V3 + =0 5 10 I1 +
Unfortunately we cannot form the matrix equations the voltages at the nodes (other than n1) are not known we do not know the [V] matrix in its entirety and thus cannot perform Gaussian elimination.
Therefore, we would like to analyse circuits with current sources instead of voltage sources because the [I] matrix is always known, and we can therefore solve the circuit using Gaussian elimination. This is a special property about current excited circuits.
So how do we cope with a voltage source in the circuit? After all, power supplies and batteries are voltage sources, not current sources!
That algorithm is quite hard to program into a computer! There must be a better way. and indeed there is! EE2.3 Semiconductor Modelling in SPICE / PDM v1.4 5
Its called matrix construction by inspection and lets us go directly from the netlist to the matrix equation. This construction is done by using predefined element matrix templates which can be added together automatically as we step through the netlist if the templates are designed properly. Each template consists of a conductance matrix of N by N, where N is the number of terminals on the device and an Nx1 voltage array and an Nx1 current array, in the usual form of [G ] [V ] = [I ] . This means that the template conductance matrix for a resistor is 2x2, a BJT is 3x3 and a MOSFET (with separate body contact) is represented by a 4x4 conductance matrix. Lets take the example of a resistor: Node 0 Node 1 col col Node 0 row GR GR = Node 1 row GR GR
Current Array
Voltage Array
Node 0 Node 1 col col Node 0 row Node 1 row I = I Current Array
Conductance Array
Voltage Array
Lets see how SPICE constructs the equations for our earlier circuit of Figure 1:
I1 R1 R2 R3 R4
n0 n1 n0 n2 n0
n1 n2 n2 n3 n3
3 5 10 5 10
From the first line of the netlist, we have the current source definition: n0 n1 V0 3 V = 3 1
n0 n1
On reading the second line of the netlist we add the definition of R1: n1 n2
n0 n1 n2
n0
Then on the third line we add R2: n2 n1 n0 0.1 V0 3 n0 0.1 0.2 0.2 n1 V1 = 3 n2 0.1 0.2 0.3 V2 0 On the fourth line add the R3 template: n0 n1 0.1 0.2 0.1 0.2 n2 n3 0.1 V0 3 V 3 0.2 1 = 0.5 0.2 V2 0 0.2 0.2 V3 0
n0 n1 n2 n3
And finally add the last line and the R4 template: n0 n1 n2 n3 n0 0.2 0.1 0.1 V0 3 V 3 n1 0.2 0.2 1 = n2 0.1 0.2 0.5 0.2 V2 0 n3 0.2 0.3 V3 0 0.1
Note that we can add the matrices because as we add components into the circuit, any additional branch conductances appear in parallel with the existing elements and conductances in parallel add up. Another nice reason to use the [G ] [V ] = [I ] instead of the [R ] [I ] = [V ] form!
But this equation by inspection is different from the one we derived using nodal analysis. Is it valid?
Use a Of course! Remove the first row and column (which you can do as the voltage was zero) and you have the same matrix as we started with.
Now we know how SPICE solves any resistive circuit bias point with both voltage and current sources. What about simulations with capacitors and inductors?
Simple - Capacitors are set open circuit and inductors to short circuit.
So, what about solving for non-linear elements, like a diode, or BJT?
5+
This single nodal KCL equation is a transcendental (meaning it is an equation involving terms other than simple polynomials which generally cannot be rearranged so that the variable becomes the subject of the equation) and thus the equation can only be solved numerically. If we tried to form this into our G*V=I form and solve the normal way we would get:
V1 [0.5][V1 ] = 5 I s exp
Vt We do not need to make any Gaussian elimination operations to solve this because there is only 1 node But it is still not clear how to solve it because it is transcendental. We can solve it using the Newton-Raphson algorithm, with which you should be familiar. Lets remind ourselves how this works. The Newton-Raphson algorithm is as follows:
Vn+1 = Vn
Where Vn+1 is the voltage at the next iteration and Vn is the voltage at the current iteration. This does not mean the voltage at node n or node n+1.
V1 For the simple circuit above, F (V1 ) = 5 I s exp V 0.5V1 t
Therefore we have:
V1n 5 I s exp V 0.5V1n t = V1n V1n I sV1n exp V 0.5 t
V1n +1
At node 2:
V2 V2 V1 V2 + + I s exp V =0 5 10 t
Which can be formed into the following matrix equations (of course done in SPICE by inspection):
3 0.2 0.2 V 1 0.2 0.3 V 2 = I s exp V2 V t To solve these matrix equations, SPICE first uses Gaussian elimination to form the following matrices:
3 0.2 0.2 V 1 V 0 0.1 V 2 = I s exp 2 3 V t Then, Newton-Raphson will be used to solve the transcendental equation for V2, before back substitution is used to find V1. Now we have some idea of how SPICE can solve circuits of any combination of linear and nonlinear elements with both voltage and current source excitation. You now know the basics of how SPICE solves operating point (static DC analysis) problems with R, L, C and non-linear elements. The topic of Newton-Raphson brings us nicely onto the next topic
10
Given the high frequency at which you can encounter convergence issues when simulating circuits in SPICE, it may surprise you to know that SPICE was designed with the convergence issue in mind as it is a known problem with iterative solution methods (i.e. Newton-Raphson) used in the internals of the program.
11
Newton-Raphson tries to find the intersection of the diode characteristic with the load line. Make sure you understand how the load line is drawn you are probably used to drawing them for voltage excited series circuits but this is a current excited parallel circuit. We first pick a starting point for the iterations. Lets choose somewhere around 1 V to start with. Graphically, the Newton-Raphson algorithm does the following: Take a tangent to the diode curve at the starting point (this tangent is of course a small signal linearised model of the diode!) and see where that crosses the load line This voltage is the starting point for the next iteration Repeat
You can see how this iterates towards the solution in the diagrams below.
12
Imagine that the first guess had been at a lower voltage. Then the tangent at the second guess would be almost vertical and the algorithm can get stuck.
We can see that we are always going to have a problem with the Newton-Raphson algorithm whenever we have a very high value of conductance on an element (in this case the diode) because the time taken for convergence of the algorithm may be large, or if the gradient is steep enough, the algorithm may not converge at all, with the next iteration voltage being the same as the last, and potentially no where near the actual solution There will also be a problem if the algorithm ends up in the part of the curve where the conductance of the diode is too small i.e. the slope of the graph is too shallow. We can see this because in the Newton-Raphson algorithm we will approach a divide by zero error as the derivative of the curve approaches zero. Graphically it means that the next guess at a node voltage will be very far from the actual answer- and back on a step part of the curve where we have long convergence times.
V1 1 V1 2 ,V13
This means that the slope of the exponential of the diode in reverse bias is at least equal to GMIN.
13
In addition, GMIN is the minimum conductance allowed between any two neighbouring nodes in SPICE. If you set a resistance between two nodes with a conductance of less than GMIN, the simulator will not run. Note that there may be certain circumstances where you have to reduce GMIN the default value in SPICE is 1e-12. If the impedance of some components in your circuit are of this order of magnitude, although GMIN will aid convergence, it will potentially ruin the accuracy of your simulations. Think before you simulate! Essentially, if you have both a parallel GMIN with a pn junction, and a series resistance, simulating the resistance of the wires, the overall slope conductance is always kept within manageable levels so that the next iteration will neither be too far away from the previous guess (and possibly wildly inaccurate), or too close (long iteration times).
Pspice|Edit
We have looked in some detail at the operation of the DC bias point analysis. We will look briefly now at the other types of simulation that SPICE can do.
14
The DC sweep has a further convergence parameter associated with it ITL2. This is the number of iterations that can be done at each step in the DC sweep, i.e. it provides the same function as ITL1 in the DC bias analysis.
7.1. AC Simulations
So far, we have seen SPICE effectively solve linear and non-linear elements in DC simulations. Performing an AC simulation is not so different from a DC simulation. However, the AC SPICE simulation does not solve for non-linear elements it does not have to perform Newton-Raphson. When you do an AC simulation in SPICE to get a bode plot of a circuits frequency response, the simulator makes linearised small-signal models of any non-linear devices. These are essentially the same models as you have seen in your analogue electronics courses and consist of (controlled) current and voltage sources and R, L and C. The component values are all constant during the simulation (which is necessary for the model to be linear of course) SPICE solves the nodal equations in almost exactly the same way as it would for a DC simulation only now the program cannot set inductances to short circuits and capacitors to open circuit. They simply become complex impedances. Consequently, at each given frequency, SPICE solves the matrix equations of the form [G][I]=[V], where the matrices now become complex. One anomaly with the AC simulation therefore, is that if you simulate something like a closed loop opamp circuit with a gain of 100 and an AC input voltage of 10 V, the output will be shown as 1000 V (if we are below the G*BW product) even through the power supplies to the opamp might only be 15 V. This is the problem with a linear model. If you want to really see the exact behaviour of a circuit, accurate at all voltages, then the best way to do it is with.
So, what models does SPICE use internally for its semiconductor devices and how do they relate to the understanding you already have of semiconductor devices? We will look at the three most common devices, the p-n diode, the BJT and the MOSFET. You have been shown small signal models of devices in other devices lectures and in your analogue courses. SPICE uses similar small signal device models when performing an AC analysis. In this part of the course, however, we will be looking at the large signal models used by SPICE in a transient (time domain) analysis and how they relate to the device physics you have already learnt.
15
V I D = I s exp Vt
Where IS is the diodes reverse saturation current, V is the applied voltage bias, Vt is the thermal voltage (equal to kT/q which is about 25mV at room temperature) and ID is the current through the device. The simple DC model used in SPICE is very similar to the Shockley equation, with the addition of a parameter n, and a convergence aid of a the GMIN parallel conductance (see Figure 11). The basic static diode model equation is thus: V I D = I s exp nVt 1 + VD GMIN
V I D = I s exp nVt
Figure 11 The SPICE diode model has a parallel conductance to aid convergence
The parameter n is an ideality factor for the diode, known as the emission coefficient. It has a SPICE parameter called N (all SPICE parameters are given in capitals). So far we have assumed n
EE2.3 Semiconductor Modelling in SPICE / PDM v1.4 16
to be 1, and indeed, in a good diode it will almost be 1. This parameter will rise above 1 if there is significant recombination of carriers in the depletion layer. Therefore, n tends to be closer to 1 under high forward bias and more than 1 under small bias voltages because the depletion layer gets thinner as the forward bias is increased. The other SPICE parameter from this basic equation is IS. In order to allow faster simulations than this equation would provide, a simple approximation is made in moderate reverse bias. When VD<-5nVt, SPICE uses the assumption that the leakage current through the p-n junction is simply equal to IS, rather than calculating the exact exponential term. This means that the total current through the complete static SPICE diode model is: I D = I s + VD GMIN
It is the limit of the current in the diode under high reverse bias. If the diode did not exhibit breakdown, the maximum reverse current that you could get through the diode with an infinite reverse bias would be Is.
You can now appreciate why the GMIN component is vital in achieving convergence in the region of VD<-5nVt, because the conductance would otherwise be zero in that region. So far we have a model that reproduces the simple diode characteristic but does not include zener breakdown. However, SPICE does include breakdown in the model, and is modelled as an exponential breakdown past a certain voltage, the breakdown voltage, specified as SPICE parameter BV, with current at breakdown of IBV. The current after breakdown is modelled with the following equation: BV + VD I D = I S exp V t BV 1 + Vt
You can see that when the diode voltage is equal to BV, the diode current as specified by this equation is -IsBV/Vt. It is therefore important that the SPICE parameter IBV is somewhat near to IsBV/Vt to allow continuity in the DC characteristic. In summery, the static characteristic curve, simulated by SPICE is shown below:
17
Finally, a series resistance is added to the diode model to simulate the resistances of the connecting wires and the ohmic contact resistances, giving us the following simple static model:
And so, VD ' = VD + I D RS In summary, the important SPICE parameters (given in capitals and corresponding to the physical parameters in italics) for setting the DC characteristic are: IS (Is) RS (Rs) N (n) BV IBV The reverse saturation current The Ohmic resistance of the contacts and bond wires The emission (or ideality) coefficient The breakdown voltage (inputted to SPICE as a positive number) The current at reverse breakdown (inputted to SPICE as a positive number)
With these parameters you can specify the complete static diode characteristic.
18
9.1.1.
The SPICE diode model does not include the effects of high level injection. When deriving the Shockley equation you previously made the assumption (although you probably did not realise it) that the number of minority carriers was much less than the number of majority carriers (this is low level injection). In power semiconductors, this is not necessarily the case because they operate in what is known as high level injection. The SPICE model does not include this effect (because it was originally designed to be used with low power signal devices). I do not expect you to understand how the physics changes in the device with low and high level injection I just want you to be aware of this limitation. If you take the power electronics course in 3rd year you will look briefly at these effects.
VD
GMIN VD
RS
We know the equations used for the current source (the Shockley equation with the addition of the non-ideality factor) and we understand the physical meaning of the series resistance RS and the reason for the GMIN resistor (that of Newton-Raphson algorithm convergence) . The question we now face is What equation does SPICE use to calculate the parallel capacitance and how does it relate to the physics? You know that there are two contributions to capacitance between the terminals of a diode. These are the diffusion capacitance and the depletion (or junction) capacitance. The depletion (junction) capacitance, dominant in reverse bias, is given by the following equation, which you have seen the derivation of earlier in the course:
C j = A eN A N D 2 ( N A + N D )(V0 V )
19
Cj = A
1 2( N A + N D ) 1 V V0
eN A N DV0
This is the equation SPICE uses to calculate the depletion capacitance, where Cj(o) is the junction capacitance at zero applied bias. The diffusion capacitance, Cd, is dominant in forward bias. This is the capacitance associated with the stored minority carriers injected into the neutral regions. You have seen an equation for the diffusion capacitance written as: Cd = e I kT
SPICE uses the same equation, but adds in the diode ideality coefficient: Cd = e I nkT
Consequently you can see the additional parameters (over and above the DC parameters) needed to specify the dynamic behaviour of a diode in SPICE: CJ0 (Cj(0)) TT () VJ (V0) Zero bias junction capacitance The transit time Built in junction voltage
You now know the most important parameters to allow you to specify a custom diode model in SPICE. There are a few more parameters which exist that we are not going to look at as we have covered the important ones.
20
Figure 15 The npn transistor as two diodes IMPORTANT: it does not really behave like this but this description is important to understanding the SPICE model!
You also know it DOES NOT BEHAVE like two discrete back to back diodes connected together two back to back diodes would not allow conduction between emitter and collector because one of them would always be in the blocking state. Transistor action (the effect of being able to control the current through one p-n junction by altering the bias across another nearby junction) only occurs because the two p-n junctions are physically very close together and have shared energy levels, so that carriers emitted from the emitter can be collected by the collector without flowing out of the base contact. In short, these two p-n junctions are not discrete they interact.
21
Electron current
Collection of electrons by collector
Recombination in base
Hole current
Figure 16 Electron and hole current in an npn BJT in the forward active region
In the forward active region, the base emitter junction is forward biased. The heavily doped emitter injects many electrons into the base region. Some of these escape out of the base contact (which is normal p-n diode behaviour if we consider the base-emitter junction to be a diode), some recombine with holes in the p-type base and the rest make it to the collector. Electrons are collected by the collector because they are attracted by the electric field in the depletion region of the base-collector junction. (The part of the depletion layer in the collector has ionised donor atoms which are positively charged and thus attract the negatively charged electrons). The electron concentrations along the length of the device are look as below:
n+ p n
npe npc e b c
22
The collector current is proportional to the minority carrier concentration gradient in the base. In active mode, npc is approximately zero because the collector-base junction is reverse biased. Hence, the emitter current is controlled completely by the base emitter voltage (when the device is operating in the active mode) as this alters the concentration gradient by altering npe. We can think of the BJT operating in this way as the following large signal equivalent circuit.
Figure 18 Equivalent circuit of npn BJT operating in active mode: derived from device physics
Where: INbe electron current through the base emitter junction IPbe hole current through the base emitter junction IF the total current through the base-emitter junction (INbe + IPbe) BF fraction of electrons injected by the emitter which are collected by the collector You should be able to see that this is an equivalent circuit of the device physics. There is: Current through the base-emitter junction, which is made of electron and hole current (mainly electron current in this npn device) A proportion (BF) of the electrons emitted from the emitter are collected by the collector We neglect any contribution that flow of holes from the reverse biased collector-base junction have to collector current You can thus see that the base current makes up (1-BF) part of the collector current, plus the contribution of holes to the base emitter current (IPbe).
F =
Ic Ie
23
And thus:
F I F = BF I Nbe
Which we need to remember for construction of the final model, in a few moments.
Figure 21 BJT carrier flows in saturation both junctions are forward biased
The main points to note here are: The injected electron current from the emitter is significantly less than in the active mode because the concentration gradient of electrons in the base is reduced because npc has increased. Both junctions are forward biased, meaning there is significantly increased base current due to forward hole injection across the base-collector junction. 24
Lets look at the electron current for a moment. We can think of this as being made of a forward and a reverse flow of electrons, due to the principle of linear superposition:
Figure 22 Carrier concentration in saturation region in base split into two components
The line marked 1 on the diagram shows the net concentration gradient of electrons in the base and hence electron current is proportional to this gradient Line 2 shows the electron concentration gradient that would be achieved if the emitter-base junction was isolated from the collector with the given base-emitter voltage Line 3 shows the electron concentration gradient that would be achieved if the collectorbase junction was isolated from the emitter with the given collector-base voltage
The total current, It, is proportional to the net gradient, i.e.: It = K n pe ' n pc ' Lb
Where K is just a constant of proportionality and Lb is the length of the base The forward current is: If = K n pe ' Lb
Thus I t = I f I r = K
Which we can see is the net current from the concentration gradient. We can therefore think of the electron current as being the sum of the current injected from the emitter and that current injected from the collector, as shown in Figure 23, if the carrier concentration at the collector and emitter respectively, are zero. EE2.3 Semiconductor Modelling in SPICE / PDM v1.4 25
n+
Collection of electrons by emitter
Electron current
Hole current
Normal injection at b-c junction
Figure 23 BJT operation in saturation mode - thinking of the electron current as two separate currents - one injected from the emitter and one from the collector
This shows us we can think of the transistor, in the saturation region, as two back to back diodes, where a proportion of the injected emitter (collector) current makes it to the collector (emitter). The part that doesnt make it all the way across the base region is either involved in recombination or flows out of the base. The base current supplies the recombination current and, in the case of the npn transistor, supplies two small hole currents to feed the two forward biased junctions. The Ebers Moll model makes use of the fact that the two separate p-n junctions exist, but adds an additional two current sources to allow for the interaction between them, so that the transistor action can be described. Figure 18 and Figure 19 showed only part of this story the device operating in saturation. The Ebers-Moll model effectively models a forward and a reverse BJT, each operating in active mode, to produce a complete BJT model that can also work in the saturation region. From Figure 23, we should now be able to see the physical mechanisms that lead us to the complete Ebers-Moll model equivalent circuit shown below, for an n-p-n transistor:
26
IF forward transistor current (through the base emitter junction) IR reverse transistor current (through the base collector junction) INbc electron current through the base collector junction IPbc hole current through the base collector junction INbe electron current through the base emitter junction IPbe hole current through the base emitter junction BF fraction of electrons injected by the emitter which are collected by the collector BR fraction of electrons injected by the collector which are collected by the emitter In summary: The diodes in Figure 24 represent the two p-n junctions of the BJT and the currents through them represent the current that would flow through them if each junction was discrete (i.e. if it was a simple diode) with the voltages VBE and VBC across them. They refer therefore to the current marked normal injection in Figure 23. Note that IF is mainly electron current because of the heavy doping of the emitter. The current sources in Figure 24 represent the interaction between the junctions i.e. some (most in a good BJT!) of the electron current which is injected into the base from the emitter passes through the base into the collector. The current sources correspond to the carrier flows marked collection of electrons by collector/emitter in Figure 23.
F I F = BF I Nbe
And therefore we can also write:
R I R = BR I Nbc
This gives us the final well known Ebers-Moll injection model:
B
IF IE IB IR IC
RIR
FI F
27
The currents flowing in these diodes are given by: VBE I F = I ES exp nVt V BC I R = I CS exp nVt 1 1
And thus the currents in the BJT terminals are given by the Ebers-Moll equations:
1
1
I B = I E I C = (1 F I F ) + (1 R I R )
You can see from the above equations that four parameters are needed to specify the Ebers-Moll model. These are: IES, ICS, R and F. However, it can be shown that F IES= R ICS (See the original paper by Ebers and Moll LargeSignal behaviour of junction transistors), and this is written as the parameter you know already know for a BJT Is.
F I ES = R I CS = I S
This makes sense the equation you know for the behaviour of the BJT in the active mode is: Vbe I c = I s exp 1 V t In active mode, we assume the current contribution from the reverse biased base-collector junction is minimal and so:
Vbe I c = F I F = F I ES exp Vt
Vbe 1 = I S exp Vt
28
When you think about it, the emitter current is just the diode equation for the base-emitter junction. The collector current is just a proportion, F of this. Hence Is for the BJT is just the ISE (saturation current of the base-emitter junction) multiplied by the proportion of this current that is collected at the collector.
Apart from the fact that SPICE can use the existing diode models and existing current source models to make a BJT with the Ebers-Moll model, what is so great about the Ebers-Moll model for computer simulation?
It works under all operating conditions active, saturation etc. SPICE does not need to implement different equations for different regions of operation.
10.1.2. Ebers-Moll Transport Model used in SPICE
So far we have looked at the Ebers-Moll injection model and we said SPICE actually uses the transport model. To make things slightly more complex, SPICE does not use the standard EbersMoll transport model, but actually a modified transport model. We will look at the modified model (we need it to see how the SPICE parameters relate to the physics) but we will look at the standard transport model as a way through to understanding the modified model.
In this model, the equations for the currents in the current sources are given by:
VBE I CC = I S exp nVt 1 VBC = I S exp 1 nVt
I EC
Where Is is the saturation current of each diode (IES and ICS) multiplied by the gain, F and R, as we defined before. All we have done here is introduced a change in notation the transport model is exactly the same as the injection model in terms of meaning and operation but is less easy to relate to the device physics. Unfortunately this is still not the final BJT model used by SPICE. There is one modification left to make before we can see the final model and how the parameters relate to the physics. EE2.3 Semiconductor Modelling in SPICE / PDM v1.4 29
SPICE uses a model with only a single current source, as shown below:
Note that the definitions of the diode currents are now different. This is in order to keep the terminal currents the same as the previous (two current source) model. In this model:
F = R =
F 1 F R 1R
I CT = I CC I EC You can prove that the terminal currents in the double and single current source models are identical hence the models give the same result they are just a little different internally. You can now see how the BJT parameters in SPICE are essentially two sets of diode parameters which we have seen previously, plus the factors BF (F) and BR (R), which accounts for the interaction between the junctions.
F is the current gain (IC/IB) of the device when it is operating with the emitter as the emitter and the collector as the collector in the active mode R is the current gain of the device when it is operating with the emitter as a collector and the collector as an emitter in the reverse active mode
30
Note that as the device is made to have higher forward current gain (the terminals for emitter and collector are not completely interchangeable due to different dopings of the collector and emitter) than reverse current gain. Finally, SPICE includes the effects of the contact resistances, and the convergence aid conductance, GMIN, is also present. So, the final large signal DC SPICE BJT model is given by:
B
IB
rb
ICC/ IE
re
IEC/
rc
IC
GMIN
GMIN
ICT
The transistor saturation current The Ohmic resistance of the contact and bond wire at the emitter The Ohmic resistance of the contact and bond wire at the base The Ohmic resistance of the contact and bond wire at the collector The emission (or ideality) coefficient for the base-emitter junction The emission (or ideality) coefficient for the base-collector junction The forward current gain The reverse current gain
Note that the BJT diode equations do not model breakdown, hence there are no BV and IBV parameters for the BJT model.
31
The forward transit time TF is the transit time associated with the base-emitter junction and the reverse transit time TR is the transit time associated with the base-collector junction.
There is also an area scaling parameter A for the BJT, which works in exactly the same way as for the diode.
32
You have seen the proof of the MOSFET equation in your 1st year lectures:
I DS
2 VDS W = 0 Cox (VGS VTH )VDS 2 Leff
When the channel becomes pinched off, IDS saturates and barely rises further. At pinch-off VDS=VGS-VTH and so the current in saturation is given by setting VDS=VGS-VTH in the equation above, to give: EE2.3 Semiconductor Modelling in SPICE / PDM v1.4 33
I DSsat =
You are already familiar with an empirical correction to these equations to account for the channel length modulation:
I DS = 0Cox
2 VDS W ( ) V V V TH DS GS [1 + VDS ] 2 Leff
And:
I DSsat = 1 W (VGS VTH )2 [1 + VDS ] 0Cox 2 Leff
These are the essentially the equations implemented by SPICE in the static model (proving that your devices knowledge is already at a good level its good enough for the industry standard simulator!), but there are some points worthy of noting. The actual specific equations used by SPICE for the static level 1 model are: In the linear region: 2 VDS W ( ) I DS = KP V V V TH DS GS [1 + VDS ] 2 L 2 X jl
Xjl is the lateral diffusion parameter, which is the amount of lateral creep there is present when the source and drain are diffused. It is assumed to be equal at each side and is illustrated below. You can see that this effectively reduces the channel length.
It is important to note that the threshold voltage changes with changes in body-source voltage, VBS. SPICE uses the following equation for the threshold voltage: EE2.3 Semiconductor Modelling in SPICE / PDM v1.4 34
VTH = VT 0 +
2 p VBS 2 p
Where VT0 is the threshold voltage when the body-source voltage is zero, is the body effect parameter and p is the surface inversion potential. Note that if the bulk is connected to the source (i.e. the MOSFET is acting as a 3 terminal device, the threshold voltage is always equal to the value VT0).
When we have stacked transistors in integrated circuits. If you connected bulk to source on each transistor in an integrated circuit you would end up shorting many points in the circuit to ground
Note that the diode equations present in this MOSFET model are not as detailed as the standard SPICE diode model - they do not include breakdown for instance. They are in fact modelled by the following equations: For forward bias on the body-source/body-drain diodes: VBS I BS = I SS exp 1 + GMIN VBS Vt VBD I BD = I SD exp 1 + GMIN VBD Vt
35
For negative reverse bias on those diodes: I BS = I SS VBS + GMIN VBS Vt VBD + GMIN VBD Vt
I BD = I SD
These reverse bias terms are simply the first terms in a power series expansion of the exponential term. Note that the GMIN convergence resistance is also present. ISS and ISD are taken to be one constant in SPICE, known as SPICE parameter IS. When modelling MOSFETS in SPICE, it can sometimes be better to cancel out the diode that is present in the SPICE MOSFET model by setting the parameter IS to zero, and putting in an additional SPICE diode model, depending on how much detail is required. This is especially important in power electronics where high voltages are common place. The important parameters that you therefore need for the MOSFET model are: L W KP (KP) VT0 (VT0) GAMMA () PHI (p) RS (RS) RD (RD) LAMBDA () XJ (Xjl) IS (ISS, ISD) Channel length Channel width The transconductance parameter Threshold voltage under zero bias conditions Body effect parameter Surface inversion potential Source contact resistance Drain contact resistance Channel length modulation parameter Lateral diffusion parameter Reverse saturation current of body-drain/source diodes
36
G S RS
CGB CGS CGD
RD
CBS
IDS
GMIN GMIN
CBD
B
Figure 33 Full transient model of MOSFET as implemented in SPICE
SPICE defines static overlap capacitances between gate and drain (CGB0), gate and source (CGS0), and gate and bulk (CGB0). These are fixed values, and are specified per unit width in SPICE.
11.2.1. In Saturation:
2 CGS = Cox + CGS 0W 3 CGD = CGD 0W These should not surprise you. In saturation, i.e. after pinch-off, the it is assumes that altering the drain voltage does not have any effect on stored charge in the channel and thus the only capacitance between gate and drain is the overlap capacitance. You have already seen the approximation that the gate-drain capacitance is simply 2/3 of the oxide capacitance when in saturation mode. SPICE also adds the overlap capacitance of the source and gate.
37
CGD
We will not show where these equations come from, but we will make one notable point: As the device is moved further into the linear region, i.e. VGS becomes large compared to (VDS-VTH) then the values of CGS and CGD become close to Cox/2 (plus the relevant overlap capacitance).
Cj =
C j (0) 1 V V0
The MOSFET equation is based on the following slightly modified equation: Cj = C j (0) 1 V V0 + C jsw (0) 1 V V0
The junction capacitance is made up of two components. The main component, due to Cj(0) is the normal junction capacitance that you are aware of from the diode equations. The second parameter is the perimeter junction capacitance of the diffused source. The diffusion of the source and drain is not constant throughout the source and drain across the whole area of the diffused region. The number of dopant atoms is greater in the centre of the source region than at the edges. Consequently, the junction capacitance is approximated as two separate junctions.
The diffusion capacitance of the body diodes is not included in the model. Why is this?
The diffusion capacitance is zero in reverse bias and the MOSFET must be operated with the bulk-drain and bulk-source diodes in reverse bias to stop large bulk currents flowing
38
The additional parameters required for specifying the transient model in addition to those required by the DC model are thus:
Gate drain overlap capacitance per unit width of device Gate source overlap capacitance per unit width of device Zero bias depletion capacitance for body diodes Zero bias depletion perimeter capacitance for body diodes Oxide thickness (used for calculating Cox)
39