Techniqueadvanced
Sparse tableau analysis
Also called sparse tableau formulation, STA formulation.
Write a circuit with all node voltages, branch voltages and branch currents as unknowns, a larger but sparser system that a sparse solver orders as a whole.
Sparse tableau analysis writes a lumped circuit as one linear system whose unknowns are all node voltages, all branch voltages and all branch currents, with one row for each node law, each branch voltage and each element law. For nodes besides ground and branches the system has unknowns, far more than modified nodal analysis, but almost all of its entries are or , and a sparse solver orders the whole system at once. It is a technique of the circuit simulation half of the logic and circuit simulation sub-area. Hachtel, Brayton and Gustavson of IBM gave it in 1971 together with a sparse LU method for it.
In plain words
A circuit gives three kinds of facts. Currents balance at every connection point. The voltage across each part is the difference of the voltages at its two ends. Each part has its own law, such as a resistor's current being its voltage divided by its resistance.
The tableau method writes down all three kinds of facts, as they are, without substituting one into another. Every voltage and every current becomes an unknown. The system is much bigger than the one that nodal methods build, but each row touches only a few unknowns, and most numbers in it are one or minus one.
A solver for sparse systems then picks a good order of elimination for the whole system. In effect it decides by itself which substitutions to make, instead of following the fixed choice that nodal methods make before the solve.
When it applies
The tableau applies to any lumped circuit whose element laws are linear in the branch voltages and currents, and to each Newton iteration and each implicit time step of a nonlinear or dynamic circuit, after the same linearization and companion models that MNA uses. Its strength is generality: every element law of the form "a linear combination of branch voltages and branch currents equals a known value" fits, including current-controlled sources, ideal transformers and elements with no admittance form, with no special stamp. It needs a sparse solver; with dense elimination it costs far more than MNA for the same circuit.
The template
The system. Use the circuit graph and the reduced incidence matrix of Kirchhoff's circuit laws. Write the element laws as , with and one row per branch: a resistor gives , a voltage source , a current source , a voltage-controlled current source where is the branch voltage of its control port, and a current-controlled current source . The tableau is
The first block row is KCL, the second is KVL in the form , and the third is the element laws.
SPARSE-TABLEAU(netlist, n)- 1
b ← the number of branches; number the unknowns e_1..e_n, v_1..v_b, i_1..i_b - 2
for each branch j from p to q do - 3
put +1 at (KCL p, i_j), −1 at (KCL q, i_j); put 1 at (KVL j, v_j), −1 at (KVL j, e_p), +1 at (KVL j, e_q) ▷ skip node 0 - 4
put the row of the element law of j into (K_v, K_i, s) ▷ hole: the branch law - 5
π ← ORDER(T) ▷ hole: the pivot order - 6
factor T with the order π and solve for (e, v, i) ▷ hole: the sparse LU - 7
return e, v, i
The holes are the branch law of line L4, the pivot order of line L5 and the sparse LU of line L6. Hachtel, Brayton and Gustavson choose the order mainly from the structure of , which does not change between Newton iterations and time steps, so that one ordering serves the whole analysis.
Why the tableau is the circuit. A vector solves exactly when satisfies KCL, satisfies KVL with node voltages , and every element law holds. This is the definition of a solution of the circuit, so the solution set of the tableau is the solution set of the circuit, with no elimination and no assumption on the elements.
Theorem (the tableau is MNA with more unknowns). For a circuit of positive resistors, independent voltage sources and independent current sources, , where is the MNA matrix of the same circuit. So is nonsingular exactly when is, that is, when the voltage sources form no loop and the resistors and voltage sources connect every node to ground, and the two systems have the same node voltages and source currents.
Proof. The proof uses the Schur complement identity: when the top left block is an identity,
which follows from multiplying on the right by , of determinant 1, to get the block lower triangular matrix . Permuting rows and columns changes a determinant only by a sign.
Step 1: remove . The KVL rows have the identity block in the columns of , and they say . The Schur complement with respect to this block replaces by in the other rows. What remains is the system in
and its determinant is .
Step 2: remove the currents of resistors and current sources. Order the branches as resistors, voltage sources and current sources, and split . The law rows of the resistors are , and those of the current sources are ; in the columns of and these rows form an identity block. The Schur complement with respect to it substitutes and into the remaining rows. The KCL rows become , and the law rows of the voltage sources stay . That is the MNA system , with determinant . Each step is a substitution that can be undone, so the solutions correspond one to one.
The MNA theorem gives the condition for . For general element laws the same two steps show that the tableau is nonsingular exactly when the reduced system in of Step 1 is.
Worked example. The circuit of the MNA page has a 6 V source from node 1 to ground, from node 1 to node 2, from node 2 to ground and a 1 A source from ground into node 2. Take the branches , , and , so , , and the tableau has unknowns. Its rows are KCL and ; KVL , , , ; and the laws , , , . The solution is , and , the same node voltages and source current as MNA. The tableau has 20 nonzeros in a matrix, a density of 0.2, while the MNA matrix has 6 nonzeros in a matrix, a density of about 0.67.
Cost. The tableau has unknowns. has at most nonzeros, the same, has , and a two-terminal element law has at most 2, so has at most nonzeros for two-terminal elements. Building it takes time. The cost of the solve is the cost of sparse LU with the chosen order, which depends on the fill-in. If the solver pivots first on the KVL identity block and on the law rows of resistors and sources, it reproduces the MNA elimination, at the cost of MNA plus the substitutions of the proof above, which take time linear in the number of nonzeros of ; a good structural order can do better on circuits where another elimination order creates less fill. Whether it does better on a given class of circuits is measured, not proved.
Classic examples
- DC operating point analysis of a nonlinear circuit, with each device law replaced by its Newton linearization in the rows of and .
- Transient circuit analysis, where Hachtel, Brayton and Gustavson combine the tableau with implicit variable-order integration, so that each step is one sparse solve with a fixed structure.
- Adjoint sensitivity analysis: the transposed tableau is the tableau of the adjoint network, and the same LU factors solve it.
- Circuits with current-controlled sources, ideal transformers or ideal operational amplifiers, whose laws fit the tableau rows directly but need extra unknowns and special stamps in MNA.
Variations
- Modified nodal analysis. MNA is the tableau after the elimination of all branch voltages and of the currents of the elements with an admittance form, done before the solve. It fixes part of the elimination order in advance in exchange for a much smaller system, and most simulators since SPICE2 use it.
- Two-graph and reduced tableaux. Some formulations keep only the branch currents of a chosen set of elements, or eliminate the KVL rows only, to sit between MNA and the full tableau.
- Nonlinear tableau. With nonlinear element laws the tableau becomes , and Newton's method solves it with the Jacobian whose and hold the partial derivatives of .
- Dynamic tableau. With capacitors and inductors the law rows contain derivatives, , and an implicit integration formula turns each time step into one tableau of the static form.
Pitfalls
- Dense solution destroys the point. Solved by dense elimination, the tableau costs , far more than MNA. It is only useful with a sparse LU that exploits the many entries.
- Pivoting on numbers breaks the fixed order. Numerical pivoting picks pivots by size and can change the elimination order from one Newton iteration to the next, which loses the precomputed structure. Structural pivot orders need a check that the chosen pivots are not too small, and a fallback.
- The same singular cases as MNA. By the theorem, a loop of voltage sources or a cut set of current sources makes the tableau singular too; the extra unknowns do not remove the problem.
- The name. In this area the abbreviation for static timing analysis is common, so this page writes "sparse tableau" in full.
- Memory. The tableau holds about nonzeros before fill, against about for MNA. On large circuits the extra rows cost memory even when the factor time is similar.
Exercises
- Write the tableau of the example in full as a matrix, and count its nonzeros.
- Carry out Step 1 and Step 2 of the proof on the example by hand, and check that the result is the MNA matrix of the MNA page.
- Write the tableau row of a current-controlled voltage source , and explain why MNA needs an extra current unknown for it.
- Show that the transpose of the tableau of a circuit of resistors and independent sources is again the tableau of a circuit on the same graph, up to signs and a permutation.
References
- Gary D. Hachtel, Robert K. Brayton and Fred G. Gustavson, The sparse tableau approach to network analysis and design, IEEE Transactions on Circuit Theory 18(1), 101 to 113, 1971, the tableau of KCL, KVL and branch equations, its sparse LU with a structural pivot order, and its use for sensitivity and implicit integration
- Chung-Wen Ho, Albert E. Ruehli and Pierce A. Brennan, The modified nodal approach to network analysis, IEEE Transactions on Circuits and Systems 22(6), 504 to 509, 1975, the comparison of the modified nodal system with the tableau
- Farid N. Najm, Circuit Simulation, Wiley-IEEE Press, 2010, Chapter 2, Section 2.4.1 (sparse tableau analysis) and Section 2.4.3 (unique solvability)
- Leon O. Chua and Pen-Min Lin, Computer-Aided Analysis of Electronic Circuits, Prentice-Hall, 1975, the chapter on the tableau formulation of network equations
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 | W3 standard |
|
Tag ER2ENS Edit this page History Report an error Markdown