Lectures Laboratory Sessions

Circuit Analysis and Optimization

International Course

www.indianspices.com

Circuit topology, constitutive relations, and nodal analysis

1st Lecture W1, October

In this lecture we are going get acquainted with the concept of concentrated circuits, Kirchoff current and voltage law and constitutive relations of circuit elements. These equations form the mathematical model of a circcuit. The number of equations and unknowns can be greatly reduced if we introduce nodal voltages (which results in the nodal analysis approach to circuit equations). This also bring some restrictions that we are going to loosen up a bit in later lectures.

To make things more simple we focus on linear circuits for now. This makes it possible for us to write the equations in matrix form. By taking a long hard look at the coefficient matrix and the vector of right-hand values we observe simple patterns (element footprints) that enable us to construct the system of equations on the fly.


Modified nodal analysis

2nd Lecture W2, October

Nodal analysis has one great disadvantage. It cannot handle elements for which constitutive relations express branch voltages with branch currents (e.g. independent voltage source). In this lecture we are going to introduce modified nodal analysis. If we cannot explicitly express a branch current with branch voltages in some constitutive relation we simply keep that branch current as an unknown. To make sure the system of equations is fully determined we must add an additional equation for every branch current we decide to keep. This additional equation is the corresponding element's constitutive relation.

Now we can handle independent voltage sources, linear controlled voltage sources, and linear current controlled sources. Modified nodal analysis is the approach used in most circuit simulators today. With everything we learned up to now it is fairly easy to handle arbitrary linear elements in our equations. We demonstrate this with several examples: ideal transformer, ideal opamp with negative feedback, and inverting amplifier built with an opamp.


Solving systems of linear equations

3rd Lecture W3, October

Solving systems of linear equations is nothing new. Several approaches were developed in the past. For starters we take a look at Gaussian elimination. We examine its computational cost and show how it can fail. To improve the robustness of Gaussian elimination we introduce pivoting. Gaussian elimination leads to many unnecessary operations when it is used for solving multiple systems of equations with the same coefficient matrix (which is common in circuit simulation). To reduce the number of operations we introduce LU-decomposition followed by backward and forward substitution.


Sparse matrices, solving large systems of linear equations

4th Lecture W1, November

Sparse matrices are matrices where most entries are zero. Coefficient matrices corresponding to real-world circuits are sparse. This makes it possible to analyze large circuits without prohibitively large memory requirements. But there is a catch. Performing LU-decomposition of a sparse matrix must make sure that as few as possible new nonzero entries (fill-in) are created during decomposition. Unfortunately one cannot have both - a small fill-in and a small numerical error. This is because avoiding fill-in dictates the choice of matrix pivots which now cannot be chosen in a way that would result in minimal numerical error.


Nonlinear elements and the Newton-Raphson algorithm

5th Lecture W2, November

When we introduce nonlinear elements we can no longer write equations in matrix form. Instead they are now written as a list of nonlinear equations. If the equations are twice continuously differentiable we can numerically solve them with the Newton-Raphson algorithm. The algorithm iteratively approaches the solution by linearizing the equations and solving the resulting linear system to produce an improved approximation to the solution of the original nonlinear system. The stopping condition for the Newton-Raphson algorithm is presented.

We take a look at the nonlinear models of selected semiconductor elements (diode, MOSFET). The linearized system can again be constructed by means of the element footprints approach. The Newton-Raphson algorithm can fail to converge to a solution. Strong nonlinearities in the element characteristics can cause convergence problems. Approaches for dealing with such elements are presented. Several approaches to finding a solution in case of convergence problems are discussed.


DC small-signal analysis

6th Lecture W3, November

One can interpret the elements of the coefficient matrix as conductances, resistances, and controlled sources. This interpretation results in the linearized circuit model. The linearized circuit model can be used for obtaining small-signal properties of the circuit like gain, input impedance, and output impedance. If the signals are composed of a large DC component and a small perturbation we can treat the circuit as linear if we consider only the perturbations. We draw parallels between linear electronics and small-signal DC analysis.


Small-signal analysis in the frequency domain

7th Lecture W1, December

We introduce the modelling of linear reactive elements (linear capacitors, inductors, and coupled inductors). We extend the notion of small-signal analysis to sinusoidal signals represented by complex numbers where the absolute value corresponds to the magnitude of the sinusoidal signal while the argument corresponds to its phase. We assume all signals in the circuit share the same frequency. Due to reactive elements the solution of the circuit depends on the signal frequency.

We extend the handling of linear reactive elements to nonlinear elements. We demonstrate the modelling of nonlinear capacitors on an example - semiconductor diode. Finally, we show how nonlinear elements are handled in small-signal frequency-domain analysis.


Small-signal noise modeling and analysis

8th Lecture W2, December

We briefly introduce the relevant aspects of noise modeling and analysis in linear circuits. We characterize various types of noise appearing in electronic circuits. Noise models of selected circuit elements are presented. We introduce small-signal noise analysis as a special case of AC analysis where signals are represented by power spectral densities. We conclude with the computation of output and equivalent input noise contributions.


Time-domain analysis

9th Lecture W3, December

To simulate the circuit in time-domain we first divide the time scale in discrete equidistant points. A nonlinear circuit is solved at every timepoint. Reactive elements are handled by expressing the time derivatives in their constitutive relations with approximations based on circuit solution at past timestep and the one we are currently computing (implicit integration). Several integration algorithms are presented. The local truncation error (LTE) is introduced and we show how it can be kept low by selecting an appropriate timestep. We replace fixed timestep with a variable one to obtain the time-domain analysis approach used in modern circuit simualtors. Variable timestep complicates the integration algorithm because its coefficients must be recomputed for every new timestep. We show how this is achieved with selected numerical integration algorithms.


Circuit optimization

10th Lecture W1, January

We introduce optimization algorithms for finding the minimum of a function of many variables. A short overview of available algorithms is presented. We show how design requirements for a circuit can be formally defined. A designer tunes these requirements by changing parameters of selected elements (design parameters). Constraints are imposed on the design parameters due to the nature of the circuit. These constraints can significantly reduce the number of design parameters. To automate the design process we introduce the cost function which is then minimized by an optimization algorithm to find circuits that satisfy design requirements. A live demonstration of the approach is given.


About the course

This is a compulsory course in the 1. semester of the Master’s degree curriculum “Electronics”. The aim is to introduce students to the theoretical background of analog circuit simulation. The course also involves laboratory work in the advanced field of circuit simulation and optimization with SPICE OPUS.


Staff

Lecturer:

prof. dr. Árpád Bürmen

Teaching Assistant:

as. Žiga Rojec


Required knowledge

Basics of Electromagnetics Physics Mathematics I, II, III Basics of Programming