Techniquecore
Logical effort
Also called Sutherland-Sproull logical effort.
Sutherland and Sproull's delay model d = gh + p for a gate, which shows that a path is fastest when every stage bears the same effort.
Logical effort is a method to estimate and to minimize the delay of a path of CMOS gates by hand. It was introduced by Sutherland and Sproull (1991) and is the subject of the book by Sutherland, Sproull and Harris (1999). Each gate has delay in units of a technology constant : is the logical effort of the gate type, is the electrical effort, the ratio of its load to its input capacitance, and is its parasitic delay. For a path, the product of the stage efforts is fixed by the gate types, the branching and the end loads. The AM-GM inequality then shows that the delay is smallest when every stage has the same effort, and it gives the minimum delay and the best number of stages in closed form.
In plain words
A gate has to charge the input capacitance of the gates it drives. A big gate drives a big load fast but is itself a big load for the gate before it. Logical effort puts a number on each part of this trade.
Each gate type has a fixed cost factor, its logical effort: an inverter has 1, a two-input NAND has 4/3. The work a stage does is its logical effort times its fanout ratio. Over a whole path, the product of these works is fixed. A product with a fixed value has its smallest sum when all factors are equal, so the fastest path gives every stage the same work. This gives the gate sizes, the path delay and the right number of stages from a few multiplications.
When it applies
- A path of static CMOS gates whose delay is mainly the charging of gate capacitance through transistors, and where the gates can be sized freely, as in custom design or in a library with many sizes.
- Early design. It compares circuit topologies, such as NAND against NOR forms or 2 against 4 stages, before any layout exists.
- Fixed end conditions. The input capacitance of the path and its output load are given, and the off-path loads are known as ratios (branching efforts).
- Not for sign-off timing. The model ignores the input slew, the wire resistance and the difference between rising and falling edges. A nonlinear delay model and static timing analysis give the timing of the final design.
- Not for whole circuits directly. The closed form is for one path. A network with reconvergent paths and fixed wire loads leads to a gate sizing problem, which is a geometric program in the same model.
The template
The model, in units of , with input capacitances measured relative to the inverter:
- Logical effort : the input capacitance of the gate divided by that of an inverter that gives the same output current. With PMOS transistors twice as wide as NMOS ones, for an inverter, for an -input NAND and for an -input NOR, so and for two inputs.
- Electrical effort of the stage.
- Parasitic delay : about for an inverter and for an -input NAND or NOR.
- Stage effort , and stage delay .
For a path of stages from input capacitance to load :
- path logical effort , path electrical effort ,
- branching effort at the output of stage , and ,
- path effort and parasitic delay .
LOGICAL-EFFORT-DESIGN(path, C_in, C_out)- 1
for each stage i of the path: g_i ← ⟨logical effort of its gate type⟩; p_i ← ⟨parasitic delay⟩ - 2
for each stage i: b_i ← ⟨branching effort at its output⟩ - 3
F ← (∏ g_i) · (∏ b_i) · C_out / C_in; P ← ∑ p_i - 4
N ← ⟨number of stages⟩: about log_4 F; add or remove inverters to reach it ▷ see below - 5
f̂ ← F^(1/N) ▷ the same effort at every stage - 6
D̂ ← N · f̂ + P ▷ the minimum path delay - 7
C ← C_out - 8
for i ← N down to 1 - 9
C ← g_i · b_i · C / f̂ ▷ input capacitance of stage i - 10
size gate i for input capacitance C; ⟨round to an available size⟩ - 11
return the sizes and D̂
The loop ends with , because the product of the factors is . This is a check on the arithmetic.
Why equal efforts are best (line L5). The stage efforts satisfy , because each is times the ratio of the next on-path input to this input, and these ratios multiply to . The path delay is , and does not depend on the sizes. By the inequality of arithmetic and geometric means, , with equality if and only if all are equal. Every choice of efforts with product comes from sizes (line L9 builds them), so the minimum delay is .
The best number of stages (line L4). Adding inverters to a path changes neither nor nor , but adds to . Treat as a real number and write , so . The part of the delay that changes is . Its derivative in is zero when
The solution is for , for and for . The minimum is flat: with , a stage effort of 4 costs 0.4 percent more delay than 3.59, and any value from 2.4 to 6 costs less than 9 percent more. That is why the rule of thumb is a stage effort of about 4, and .
Example. A path of three NAND2 gates has input capacitance 1 and drives a load of 27, with no branching. Then , , and . With , and . Line L9 gives the input capacitances from the output back: , then , then , as the check says. If all three gates had input capacitance 1, the stage efforts would be , and , and the delay . The best real number of stages is . With one more inverter the delay is , so three stages are best here.
Classic examples
- A chain of inverters driving a large load. Here and , so the chain has about stages, each about 4 times larger than the one before. Without parasitic delay, the best ratio is , the classic result for tapered buffers.
- NAND against NOR. A NOR2 has and a NAND2 has , because series PMOS transistors must be wider. So designs prefer NAND forms, and the method says by how much.
- Decoders and multiplexers. The method chooses between one wide gate and a tree of small gates, and finds where to put inverters, from and the rule .
- Forks. A signal and its complement must arrive at the same time; the method sizes the two legs of a fork for equal delay.
Variations
- Asymmetric gates. Inputs of one gate can have different logical efforts when the transistors for a critical input are made larger.
- Unequal rising and falling delays. Separate logical efforts for the two edges, or skewed gates that favor one edge.
- Interconnect. A fixed wire capacitance breaks the product form, because it does not scale with the gate sizes. The delay is still a posynomial in the sizes, so the exact minimum is a geometric program, and heuristics such as TILOS apply.
- Other circuit families. Domino and pseudo-NMOS gates have their own logical efforts and parasitic delays.
- Calibration. , and the logical efforts of a technology are fitted to circuit simulations of the real gates.
Pitfalls
- Treating the model as exact. It is linear in the load and ignores the input slew. Its numbers are estimates, good for comparing designs, not for sign-off.
- Forgetting branching. Off-path loads multiply the path effort. If a path has and is designed as if , its real path effort is 3 times the planned one, and the stages next to the branches are much slower than planned.
- Equal sizes instead of equal efforts. Equal efforts mean a geometric growth of the sizes along the path, not equal gates, as the example shows.
- Too many or too few stages. A stage effort far from 4, such as 10 or 1.5, wastes delay. Adding inverters can make a path faster, but an added inverter also inverts the logic.
- Rounding. Library cells come in a few sizes. Rounding each size changes the efforts, and the minimum is flat, so small rounding errors cost little.
Exercises
- Show that the logical effort of an -input NOR gate is when PMOS transistors are twice as wide as NMOS transistors of the same strength.
- Redo the example with a load of 216 instead of 27. Find , the best number of stages with inverters added at the end, and the minimum delay.
- Show that for the equation has exactly one solution with , and that it gives the minimum of .
References
- Ivan E. Sutherland and Robert F. Sproull, Logical effort: designing for speed on the back of an envelope, Proceedings of the 1991 UC Santa Cruz Conference on Advanced Research in VLSI, MIT Press, 1 to 16, 1991, the delay model d = gh + p, the logical efforts of simple gates and the rule of equal stage effort
- Ivan Sutherland, Bob Sproull and David Harris, Logical Effort, Designing Fast CMOS Circuits, Morgan Kaufmann, 1999, Chapter 1, the method of logical effort (path effort, branching effort, the minimum delay and the best number of stages)
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 ZN9QN5 Edit this page History Report an error Markdown