Problemcore
Symbolic circuit analysis
Also called symbolic analysis of analog circuits.
Compute network functions of a linear or linearized circuit as expressions in the symbolic element values, to give designers insight into which parameters matter.
Symbolic circuit analysis is the problem of computing a network function of a linear circuit, for example a voltage gain, as a formula in the frequency variable and in the names of some or all element values, not as numbers. Its topic is symbolic circuit analysis, one of the five topics of this sub-area. The input is usually the small-signal circuit of an analog block at its operating point, and the formula tells a designer which elements set a gain, a pole or a zero. The hard part is size: the expanded formula can have a number of terms that grows exponentially with the circuit.
In plain words
A circuit simulator answers with numbers: at this frequency, the gain is this much. A designer often wants to know why. Which transistor sets the gain? Which capacitor sets the bandwidth? A formula in the names of the parts answers these questions, because you can read which names appear and how.
Symbolic analysis produces such a formula. It writes the circuit equations with names in place of numbers and solves them by algebra. The answer is a fraction: a sum of products of names, divided by another sum of products.
For a small circuit the formula is short and useful. For a larger circuit the number of products explodes, and a full formula is too long to read. Exact methods store it in a compact shared form. Approximate methods keep only the products that matter.
Definition
Input. A linear time-invariant circuit with nodes besides ground: resistors, capacitors, inductors and the four kinds of controlled sources, for example the small-signal model of an analog circuit. Each element value is a symbol or a number, and the set holds the symbols. An input port and an output port (an independent source and a node voltage or branch current).
Equations. Modified nodal analysis in the Laplace domain gives a square system
where each entry of is a sum of terms , or , or of numbers times such terms. For a current that enters node , . By Cramer's rule, the voltage of node gives
where is the cofactor and the minor of without row and column .
Output. The network function as a ratio of two polynomials in and . In the expanded form, both are written as
with numeric coefficients , after all cancellations. The size of the output is the number of terms .
Objective. Exact analysis must return exactly, in some agreed form. Approximate analysis must return a shorter whose error is at most a given at a given nominal point of the element values, with the error defined on the coefficients of each power of or on over a band.
Variants
- Fully symbolic or partly symbolic. All element values are symbols, or only some, with numbers for the rest. In the limit, only is a symbol, and the output is a numeric rational function of , which is the output of AC small-signal analysis in a closed form.
- Expanded or nested form. The expanded form is a flat sum of products, and the nested form keeps sums inside products, as in . A nested form can be exponentially shorter, but the reader cannot see the size of each term in it.
- Exact or approximate. See approximate symbolic analysis.
- Element-level or entry-level symbols. A symbol for each element value gives the formula a designer wants. A symbol for each entry of gives a shorter determinant expansion, but each entry is a sum of element values, and the terms must then be expanded again.
- Small-signal or large-signal. The problem is defined for linear circuits. A nonlinear circuit is first linearized at an operating point, so the formula is valid only for small signals near that point.
Examples
A two-node amplifier. Node 1 has a conductance to ground, and a current source drives it. A capacitor joins nodes 1 and 2. A transconductance draws the current out of node 2, and a conductance joins node 2 to ground. This is the small-signal model of a common-source stage with a feedback capacitor. The nodal system is
The product of the diagonal gives , , and . The off-diagonal entries give and , and the last one cancels . So
The formula shows at a glance what a simulation does not: a zero in the right half plane at , and one pole whose time constant grows with , which is the Miller effect. With , , and , the low-frequency value is , the pole is at rad/s and the zero is at rad/s.
A ladder. A ladder of nodes has an admittance from each node to ground, and a conductance between nodes and . A current enters node 1, and the output is . The cofactor is , one term. The determinant, expanded in the element values, has terms, where is the -th Fibonacci number:
| nodes | 1 | 2 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|---|
| terms of | 1 | 3 | 8 | 55 | 6,765 | 102,334,155 |
For , . If each is also expanded, the counts for to 5 are 2, 8, 30, 112 and 418.
Known algorithms
- Determinant expansion. Expand and by Laplace expansion or by elimination. ISAAC (Gielen, Walscharts and Sansen 1989) used this kind of method on a nodal matrix and is exact, apart from its optional pruning. The time is at least the number of terms.
- Tree enumeration. For a circuit of admittances only, each term of is a spanning tree of the circuit graph with ground (see the Bounds). Enumerating spanning trees gives the terms with no cancellation. Controlled sources need a pair of graphs, one for currents and one for voltages, and common trees of the two. Exact.
- Signal-flow graphs. Write the equations as a signal-flow graph and apply Mason's gain formula, which sums over paths and sets of loops that do not touch. Exact, but the loop sums can produce terms that cancel.
- Determinant decision diagrams (Shi and Tan 2000). Store the determinant and its cofactors as one shared graph, with one path for each term. Exact, and the graph can be exponentially smaller than the list of terms.
- Approximate symbolic analysis. Prune the circuit or the matrix before the expansion, prune the search during the expansion, or prune the terms after it, under an error bound at a nominal point. The result is short, and its error bound holds only at that point.
Bounds
Lower bound from the output size. An algorithm that writes the expanded form needs time at least the number of terms. For the ladder, this number is , with . So the expanded form of an exact answer takes exponential time and space on this family, whatever the method.
Proof that the ladder has terms. The ladder is a circuit of admittances, so is the weighted Laplacian matrix of the circuit graph with the ground row and column removed. The circuit graph has the ground and nodes, edges from ground to each node, and edges between nodes and . By the weighted matrix-tree theorem, is the sum, over all spanning trees of this graph, of the product of the weights of the tree's edges. Different trees have different edge sets, so with distinct symbols they give different monomials, each with coefficient , and nothing cancels. So the number of terms is the number of spanning trees, which is with every weight equal to 1.
With weights 1, is tridiagonal with off the diagonal. For it is , with determinant . For its diagonal is . Let be the determinant of the tridiagonal matrix with diagonal and off the diagonal. Expansion along the last row gives for , with and . The Fibonacci numbers satisfy , so by induction. Expansion of along its last row gives .
What is polynomial. The number of terms of an admittance-only circuit is a determinant with weights 1, so it can be counted in polynomial time by Gaussian elimination, without listing the terms. The value of at given numbers takes arithmetic operations. A nested form exists with polynomial size: the steps of Gaussian elimination on the symbolic matrix, kept as a sequence of expressions, compute wherever no pivot is zero. A determinant decision diagram is also exact, but its size depends on the matrix and the order of its entries, and it is exponential for a dense matrix.
Reductions
- To determinants. By Cramer's rule, a network function is a ratio of a cofactor and the determinant of the MNA matrix. Each is the determinant of a square matrix with polynomial entries. So exact symbolic analysis reduces to the symbolic determinant of a sparse matrix.
- To spanning trees. For a circuit of admittances, the determinant is the weighted spanning tree polynomial of the circuit graph, by the matrix-tree theorem. So exact analysis of such a circuit reduces to the enumeration of spanning trees.
- From numeric AC analysis. Numeric AC analysis at one frequency is the special case with no symbols, solved by sparse LU in place of expansion.
Applications
- Insight in design. The formula shows which elements set the gain, the poles, the zeros and the rejection ratios of an amplifier, and how.
- Equations for sizing. Approximate symbolic formulas give fast models of the performance of a topology, which an analog circuit sizing tool can evaluate many times.
- Repeated evaluation. A compiled exact formula or a determinant decision diagram evaluates the response for many values of the elements, for example in a Monte Carlo loop or a sensitivity analysis, without a new LU factorization each time.
- Teaching and checking. A short formula checks a hand analysis, and a hand analysis checks a simulator.
References
- G. Gielen, H. Walscharts and W. Sansen, ISAAC, a symbolic simulator for analog integrated circuits, IEEE Journal of Solid-State Circuits 24(6), 1587 to 1597, December 1989, the program ISAAC, its symbolic network functions in s and the element values, and the pruning of small terms
- Georges Gielen and Willy Sansen, Symbolic Analysis for Automated Design of Analog Integrated Circuits, Kluwer Academic Publishers, 1991, the chapters on the formulation of the circuit equations, the symbolic solution methods and the expanded and nested forms
- P. Wambacq, G. Gielen and W. Sansen, Symbolic network analysis methods for practical analog integrated circuits, a survey, IEEE Transactions on Circuits and Systems II 45(10), 1331 to 1341, October 1998, the classes of exact methods (determinant, tree enumeration, signal-flow graph) and the growth of the number of terms
- C.-J. R. Shi and X.-D. Tan, Canonical symbolic analysis of large analog circuits with determinant decision diagrams, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 19(1), 1 to 18, January 2000, exact analysis of large circuits through a shared graph of the determinant
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag RMKR18 Edit this page History Report an error Markdown