Techniqueadvanced
Geometric programming circuit sizing
Also called Hershenson-Boyd-Lee op-amp design, posynomial circuit sizing.
Hershenson, Boyd and Lee's method that writes op-amp specifications as posynomials of device sizes, so sizing becomes a convex geometric program with a global optimum.
Geometric programming circuit sizing writes every specification of an analog circuit as a bound on a posynomial or a monomial of the device sizes and bias currents, so that sizing becomes a geometric program. Its topic is analog sizing and layout, one of the five topics of this sub-area. A geometric program is convex after a change of variables to logarithms, so an interior-point method finds its global optimum, or proves that no design meets the specifications. Hershenson, Boyd and Lee sized a two-stage CMOS op-amp this way in 2001. The optimum is the global optimum of the posynomial model, which is built on fitted device equations; it is not proved to be the optimum of the real circuit.
In plain words
Sizing a circuit means choosing the widths and lengths of its transistors and its bias currents so that the circuit meets its targets: gain, speed, noise, power.
Many of these targets, written with the simple textbook formulas of a transistor, have one special form: each is a sum of terms, and each term is a positive number times a product of powers of the sizes. If every target has this form, the whole design question can be turned, by measuring every size on a log scale, into a smooth bowl-shaped problem. A bowl has one lowest point, so a solver finds the best design of the formulas, and if no design meets the targets, it says so.
The catch is the formulas. They are fitted approximations of real transistors, so the best design of the formulas must still be checked by a full simulation.
When it applies
- The topology is fixed, and the unknowns are positive: widths, lengths, currents, capacitor values, bias voltages above a threshold.
- Each specification can be written, after rearranging, as with a posynomial, or with a monomial in the sense of the geometric programming page (a positive constant times a product of real powers). A lower bound is allowed only on a monomial: becomes .
- The objective is a posynomial to minimize, such as power, area or a weighted sum of them, or a monomial to maximize, such as the bandwidth.
- The device equations are monomials or posynomials. With the square-law model in saturation, the transconductance , the overdrive , the output conductance with , and the gate capacitance are all monomials.
The template
- Choose the variables : the and of each transistor (with monomial equations for matched devices), the bias currents, and the compensation capacitor.
- Write each device quantity with the fitted device model, as a monomial or a posynomial of .
- Write each specification as a posynomial upper bound or a monomial equation. For example, a gain with a monomial becomes . A bandwidth , with a posynomial capacitance , becomes , which is a posynomial divided by a monomial, so a posynomial.
- Add the constraints that keep every device in the region where its model holds, such as for saturation, and the limits of the process, such as .
- Solve the geometric program with an interior-point method in the variables .
- Check the result by circuit simulation with the full device models, and adjust the fitted constants or the margins if the two disagree.
Theorem (the optimum is global for the model). Let the problem of steps 1 to 4 have a feasible point. Every local minimum of it is a global minimum of the posynomial model.
Proof. Put , componentwise. This is a bijection from onto , and a continuous one in both directions, so local and global minima correspond. A posynomial becomes , and is the log-sum-exp function of an affine map of , which is convex (see the log-sum-exp trick). A constraint becomes , a sublevel set of a convex function, so a convex set. A monomial equation becomes , an affine set. Minimizing is the same as minimizing the convex function . So the problem in is a convex optimization problem. Let be a local minimum, and suppose a feasible has a smaller objective . The points , , are feasible, because the feasible set is convex, and , because is convex. For small these points are as close to as we like, which contradicts local minimality.
What the theorem does not say. The device equations of step 2 are fitted: the square law with its constants , and , or a posynomial fitted to simulation data. The theorem says nothing about the distance between the posynomial model and the circuit. That distance is measured, by simulation of the result, and it is the main source of error of the method.
Classic examples
A single-transistor gain stage. Size a common-source stage with a load pF so that its gain-bandwidth is at least 10 MHz and its gain is at least 100, with the least bias current . The variables are , and . The load is , a posynomial. The constants:
| constant | value | where it comes from |
|---|---|---|
| 200 µA/V² | fitted to the process | |
| in | 0.1 µm/V | fitted to the process |
| , the gate capacitance per area | 5 fF/µm² | a process value |
| , MHz, | the specifications | |
| V, µm | a design margin and a process limit |
The program is: minimize subject to , , and . A numerical solution gives V, µm, µm and µA. The gain is exactly 100, so the gain sets , above the minimum length. The bandwidth is exactly 10 MHz. A lower overdrive would give more per unit of current, so the overdrive bound is tight too.
What the model does outside its region. Drop the bound . The same program then has its optimum near nA with mV and µm. This is the global optimum of the model, but the square law does not hold at such a small overdrive: the transistor is in weak inversion, where its is far below the square-law value. The real stage would miss the bandwidth. Step 4 is not optional.
The two-stage op-amp. Hershenson, Boyd and Lee size the classic two-stage CMOS op-amp with a Miller capacitor. The variables are the widths and lengths of the transistors, the bias current and the compensation capacitor. They write the gain, the unity-gain bandwidth, the phase margin (with an approximation that makes it a posynomial bound), the slew rate, the common-mode range, the output swing, the noise, the power and the area as posynomial bounds or monomial equations. The geometric program is small, and an interior-point method solves it fast enough to solve it many times. Because each solve gives the global optimum, they trace optimal tradeoff curves, such as the best bandwidth for each power, which show the best that the topology can do under the model.
Variations
- Fitted posynomial models. Daems, Gielen and Sansen fit posynomials to the simulated performance of a circuit, instead of writing the equations by hand. This lowers the model error, but the fit is still an approximation, with its own error that must be measured.
- Digital gate sizing. The delay of a gate under an RC model is a posynomial of the gate sizes, so gate sizing with continuous sizes is also a geometric program.
- Robust design. Ranges or ellipsoids of the fitted constants can be added as robust constraints, so that the design meets its specifications for every value in the set.
- Non-posynomial specifications. A specification that is not a posynomial bound can be approximated by one, or handled by a sequence of geometric programs that each replace it by a local monomial fit. Each subproblem is solved globally, but the sequence is a local method.
- Tradeoff curves. Fix one specification at a series of values and solve each geometric program, to trace a Pareto curve of the model.
- Matching. A minimum area from the Pelgrom model is a monomial bound, so offset targets fit the method.
Pitfalls
- Reading the optimum as the optimum of the circuit. The global optimum is a property of the posynomial model. A design that is optimal for the model can miss a specification in simulation, and a better circuit design may exist that the model ranks lower.
- Leaving the region of the model. Without bounds such as and , the solver moves into regions where the fitted equations are wrong, as in the example above.
- Lower bounds on posynomials. A constraint with a posynomial of more than one term is not convex after the change of variables. For example becomes , whose feasible set is not convex. Such a specification must be rewritten, approximated, or left out.
- Differences of terms. A quantity such as is not a posynomial. Bounds on it need a rewrite, for example , which is a posynomial upper bound.
- Fitted constants. , and the threshold differ between process corners and drift with the bias. A design sized at one set of constants can fail at another. Use the worst corner, or robust constraints.
Exercises
- Show that the gain of the example is the monomial , and that it equals .
- Show that is a posynomial bound, and write it in the variables as a log-sum-exp bound.
- In the example, explain without a solver why the bound must be tight at the optimum. Then find from the gain bound, and from the bandwidth bound, and check the values above.
- Show that the set is not convex, by finding two points in it whose midpoint is not.
- Add the area to the example. Is the program still feasible? Which bound is then the most costly?
References
- M. del Mar Hershenson, S. P. Boyd and T. H. Lee, Optimal design of a CMOS op-amp via geometric programming, IEEE TCAD 20(1), 1 to 21, January 2001, the two-stage op-amp, the posynomial and monomial forms of its specifications under the square-law device model, the global optimum by an interior-point method, the tradeoff curves, and the comparison with simulation
- Stephen Boyd, Seung-Jean Kim, Lieven Vandenberghe and Arash Hassibi, A tutorial on geometric programming, Optimization and Engineering 8(1), 67 to 127, 2007, the convex form of a geometric program, the modeling rules for posynomials, and the circuit design examples
- Stephen Boyd and Lieven Vandenberghe, Convex Optimization, Cambridge University Press, 2004, Section 4.5 (geometric programming and its convex form) and Section 4.2.2 (local optima of convex problems are global)
- W. Daems, G. Gielen and W. Sansen, Simulation-based generation of posynomial performance models for the sizing of analog integrated circuits, IEEE TCAD 22(5), 517 to 534, 2003, the fit of posynomial performance models to simulation data, so that the sizing problem becomes a geometric program
- Georges G. E. Gielen and Rob A. Rutenbar, Computer-aided design of analog and mixed-signal integrated circuits, Proceedings of the IEEE 88(12), 1825 to 1854, 2000, the section on analog circuit sizing (equation-based and simulation-based methods)
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 6XN9CP Edit this page History Report an error Markdown