In electronics, diode modelling refers to the mathematical models used to approximate the actual behaviour of real diodes to enable calculations and circuit analysis. A diode's I-V curve is nonlinear. A very accurate, but complicated, physical model composes the I-V curve from three exponentials with a slightly different steepness (i.e. ideality factor), which correspond to different recombination mechanisms in the device; at very large and very tiny currents the curve can be continued by linear segments (i.e. resistive behaviour). In a relatively good approximation a diode is modelled by the single-exponential Shockley diode law. This nonlinearity still complicates calculations in circuits involving diodes so even simpler models are often used. This article discusses the modelling of p-n junction diodes, but the techniques may be generalized to other solid state diodes.
Large-signal modelling
Shockley diode model The Shockley diode equation relates the diode current I of a p-n junction diode to the diode voltage VD. This relationship is the diode I-V characteristic:
I=IS(eVDnVT−1), where IS is the saturation current or scale current of the diode (the magnitude of the current that flows for negative VD in excess of a few VT, typically 10−12 A). The scale current is proportional to the cross-sectional area of the diode. Continuing with the symbols: VT is the thermal voltage (kT/q, about 26 mV at normal temperatures), and n is known as the diode ideality factor (for silicon diodes n is approximately 1 to 2). When VD≫nVT the formula can be simplified to:
I≈IS⋅eVDnVT. This expression is, however, only an approximation of a more complex I-V characteristic. Its applicability is particularly limited in case of ultra-shallow junctions, for which better analytical models exist.
Diode-resistor circuit example To illustrate the complications in using this law, consider the problem of finding the voltage across the diode in Figure 1.
Because the current flowing through the diode is the same as the current throughout the entire circuit, we can lay down another equation. By Kirchhoff's laws, the current flowing in the circuit is
I=VS−VDR. These two equations determine the diode current and the diode voltage. To solve these two equations, we could substitute the current I from the second equation into the first equation, and then try to rearrange the resulting equation to get VD in terms of VS. A difficulty with this method is that the diode law is nonlinear. Nonetheless, a formula expressing I directly in terms of VS without involving VD can be obtained using the Lambert W-function, which is the inverse function of f(w)=wew, that is, w=W(f). This solution is discussed next.
Explicit solution An explicit expression for the diode current can be obtained in terms of the Lambert W-function (also called the Omega function). A guide to these manipulations follows. A new variable w is introduced as
w=ISRnVT(IIS+1). Following the substitutions I/IS=eVD/nVT−1:
wew=ISRnVTeVDnVTeISRnVT(IIS+1) and VD=VS−IR:
wew=ISRnVTeVSnVTe−IRnVTeIRISnVTISeISRnVT rearrangement of the diode law in terms of w becomes:
wew=ISRnVTeVs+IsRnVT, which using the Lambert W-function becomes
w=W(ISRnVTeVs+IsRnVT). The final explicit solution being
I=nVTRW(ISRnVTeVs+IsRnVT)−IS. With the approximations (valid for the most common values of the parameters) IsR≪VS and I/IS≫1, this solution becomes
I≈nVTRW(ISRnVTeVsnVT). Once the current is determined, the diode voltage can be found using either of the other equations. For large x, W(x) can be approximated by W(x)=lnx−lnlnx+o(1). For common physical parameters and resistances, ISRnVTeVsnVT will be on the order of 1040.
Iterative solution The diode voltage VD can be found in terms of VS for any particular set of values by an iterative method using a calculator or computer. The diode law is rearranged by dividing by IS, and adding 1. The diode law becomes
eVDnVT=IIS+1. By taking natural logarithms of both sides the exponential is removed, and the equation becomes
VDnVT=ln(IIS+1). For any I, this equation determines VD. However, I also must satisfy the Kirchhoff's law equation, given above. This expression is substituted for I to obtain
VDnVT=ln(VS−VDRIS+1), or
VD=nVTln(VS−VDRIS+1). The voltage of the source VS is a known given value, but VD is on both sides of the equation, which forces an iterative solution: a starting value for VD is guessed and put into the right side of the equation. Carrying out the various operations on the right side, we come up with a new value for VD. This new value now is substituted on the right side, and so forth. If this iteration converges the values of VD become closer and closer together as the process continues, and we can stop iteration when the accuracy is sufficient. Once VD is found, I can be found from the Kirchhoff's law equation. Sometimes an iterative procedure depends critically on the first guess. In this example, almost any first guess will do, say VD=600mV. Sometimes an iterative procedure does not converge at all: in this problem an iteration based on the exponential function does not converge, and that is why the equations were rearranged to use a logarithm. Finding a convergent iterative formulation is an art, and every problem is different.
Graphical solution
Graphical analysis is a simple way to derive a numerical solution to the transcendental equations describing the diode. As with most graphical methods, it has the advantage of easy visualization. By plotting the I-V curves, it is possible to obtain an approximate solution to any arbitrary degree of accuracy. This process is the graphical equivalent of the two previous approaches, which are more amenable to computer implementation. This method plots the two current-voltage equations on a graph and the point of intersection of the two curves satisfies both equations, giving the value of the current flowing through the circuit and the voltage across the diode. The figure illustrates such method.
Piecewise linear model
… excerpt ends here. Continue reading the full article.





