Derivation of delay in a logic gate
Delay is expressed in terms of a basic delay unit, ''τ'' = ''3RC'', the delay of an inverter driving an identical inverter without any additional capacitance added by interconnects or other loads; the unitless number associated with this is known as the normalized delay. (Some authors prefer define the basic delay unit as theProcedure for calculating the logical effort of a single stage
CMOS inverters along the critical path are typically designed with a gamma equal to 2. In other words, the pFET of the inverter is designed with twice the width (and therefore twice the capacitance) as the nFET of the inverter, in order to get roughly the same pFET resistance as nFET resistance, in order to get roughly equal pull-up current and pull-down current. Choose sizes for all transistors such that the output drive of the gate is equal to the output drive of an inverter built from a size-2 PMOS and a size-1 NMOS. The output drive of a gate is equal to the minimum – over all possible combinations of inputs – of the output drive of the gate for that input. The output drive of a gate for a given input is equal to the drive at its output node. The drive at a node is equal to the sum of the drives of all transistors which are enabled and whose source or drain is in contact with the node in question. A PMOS transistor is enabled when its gate voltage is 0. An NMOS transistor is enabled when its gate voltage is 1. Once sizes have been chosen, the logical effort of the output of the gate is the sum of the widths of all transistors whose source or drain is in contact with the output node. The logical effort of each input to the gate is the sum of the widths of all transistors whose gate is in contact with that input node. The logical effort of the entire gate is the ratio of its output logical effort to the sum of its input logical efforts.Multistage logic networks
A major advantage of the method of logical effort is that it can quickly be extended to circuits composed of multiple stages. The total normalized path delay ''D'' can be expressed in terms of an overall path effort, ''F'', and the path parasitic delay ''P'' (which is the sum of the individual parasitic delays): : The path effort is expressed in terms of the path logical effort ''G'' (the product of the individual logical efforts of the gates), and the path electrical effort ''H'' (the ratio of the load of the path to its input capacitance). For paths where each gate drives only one additional gate (i.e. the next gate in the path), : However, for circuits that branch, an additional branching effort, ''b'', needs to be taken into account; it is the ratio of total capacitance being driven by the gate to the capacitance on the path of interest: : This yields a path branching effort ''B'' which is the product of the individual stage branching efforts; the total path effort is then : It can be seen that ''b'' = 1 for gates driving only one additional gate, fixing ''B'' = 1 and causing the formula to reduce to the earlier non-branching version.Minimum delay
It can be shown that in multistage logic networks, the minimum possible delay along a particular path can be achieved by designing the circuit such that the stage efforts are equal. For a given combination of gates and a known load, ''B'', ''G'', and ''H'' are all fixed causing ''F'' to be fixed; hence the individual gates should be sized such that the individual stage efforts are : where ''N'' is the number of stages in the circuit.Examples
Delay in an inverter
By definition, the logical effort ''g'' of an inverter is 1. If the inverter drives an equivalent inverter, the electrical effort ''h'' is also 1. The parasitic delay ''p'' of an inverter is also 1 (this can be found by considering the Elmore delay model of the inverter). Therefore, the total normalised delay of an inverter driving an equivalent inverter is :Delay in NAND and NOR gates
The logical effort of a two-input NAND gate is calculated to be ''g'' = 4/3 because a NAND gate with input capacitance 4 can drive the same current as the inverter can, with input capacitance 3. Similarly, the logical effort of a two-input NOR gate can be found to be ''g'' = 5/3. Due to the lower logical effort, NAND gates are typically preferred to NOR gates. For larger gates, the logical effort is as follows: The normalised parasitic delay of NAND and NOR gates is equal to the number of inputs. Therefore, the normalised delay of a two-input NAND gate driving an identical copy of itself (such that the electrical effort is 1) is : and for a two-input NOR gate, the delay is :References
Further reading
* * {{DEFAULTSORT:Logical Effort Digital electronics Electronics concepts