Académique Documents
Professionnel Documents
Culture Documents
Rung-Bin Lin
5-1
Rung-Bin Lin
5-2
Incorrect connections to transistors Incorrect ratios in ratioed logic Charge sharing or incorrect clocking in dynamic gates Functional correctness versus logic design styles Complementary CMOS gate (circuit) will always function correctly The function of ratioed or dynamic gates (circuits) may be compromised by poor design, sloppy layout, and unforeseen noise. Temporal aspects of a CMOS gate:
k The rise/fall time may be approximated by (EQ. 5.1), where eff ( rise / fall )V DD k is a constant (2~4), eff(rise/ fall) is the effective gain of the pull-up or pull-down chain in a gate affected by the number of transistors in series (or parallel) in the pull-down (fall time) or pull-up (rise time). C load
VDD is the power supply Note that the above formula does not consider the influence of the input rise/fall time.
Rung-Bin Lin
5-3
The timing of a circuit is determined by the delay time of the slowest (longest ) paths in the circuit. These paths are called critical paths. A path is defined as an alternating sequence of logic gates and signal nets from source to sink. The following objects can be served as a source: primary input memory element (latch or flip-flop) The following object can serve as a sink: primary output memory element (latch or flip-flop) The critical paths can be affected at four main levels: The architectural level The RTL/logic level The circuit level the layout level
Rung-Bin Lin
5-4
The stage ratio is the increase in transistor size in successive logic stages. Correct selection of the ratio can markedly affect timing in cascaded logic stages. However the ratio is greatly influenced by the fan-out of the gate. The fan-in of a gate implies the number of series transistor used to realize the gate and thus affects the speed of the gate. In general the fan-in ranges from 2 to 5. For example, the worst-case delay time tdr for an m-input NAND gate
t dr = Rp (mnC d + Cr + k C g ) = R p (mnr C g + q(k )C g + k C g ) = R p C g (mnr + q(k ) + k ) n n n R pCg Rp Cg = R p C g mr + q(k ) + k (EQ. 5.2) n n
where Rp = the effective resistance of p-device in a minimum-sized inverter n = width multiplier for p-device in this gate k = the fan-out (in units of minimum-sized inverters) m = fan-in of the gate Cg = gate capacitance of a minimum-sized inverter Cd = source/drain capacitance of a minimum-sized inverte Cr = routing capacitance r = C d/Cg q(k) = a function of the fan-out representing the routing capacitance as a multiplier times the gate capacitance
Rung-Bin Lin
5-5
where Rn = the effective resistance of n-device in a minimum-sized inverter. In general, for equal rise and fall time, i.e. tdf=tdr, we obtain Rp=mRn. Thus
pW p = nW n m
Rung-Bin Lin
5-6
Table 5.1
From the graph in Figure 5.2 and the equations 5.2 and 5.4, the effective resistance for the transistors can be calculated. For n=4, kCg=CL, q(k)=0, rCg(=Cd)=0.005pF (Cg= 0.003pF, r=1.7); Wp=2Wn, then
t df nand = m 4 t df nand Rnnand ( m 4 0.005 + ) CL Rnnand = 4 m(0.02 m + C g)
Table 5.2 show the effective resistance for m=1 to 4 Table 5.2
Rung-Bin Lin
5-7
Table 5.3 shows the delays calculated for a rising output by using the values in Table 5.1 and EQ. 4.53 (which adds 0.44t f/r to the delay time.) Table 5.4 shows the areas for the implementations in Figure 5.3. Table 5.3 and 5.4
Rung-Bin Lin
5-8
Sizing the transistors in a logic gate to obtain a smallest delay time, and balanced rise and fall time. For example, for the 8-input NAND gate used as a row decoder for memory array, transistor sizes are tuned to improve the rise time and to save the area by satisfying the fall time. The transistor sizing result is shown in Table 5.4. In general, for transistor sizing it is a good starting point to use minimum-sized devices throughout and then optimize paths from a critical-path-timing analysis. Table 5.5 .
Rung-Bin Lin
5-9
5.2.4 Summary
Basic guidelines for CMOS complementary logic design with speed as a concern: Use NAND where possible Place high-drive inverters at high fan-out nodes Avoid use NOR for high speed designs Use a fan-out below 5 to 10 Use minimum-sized gates which are driven by a high fan-out node Keep rising/falling edge sharp When designing with power or area as a constraint, large fan-in CMOS gate will always work when given enough time.
Rung-Bin Lin
5-10
Rung-Bin Lin
5-11
Figure 5.5(a) shows the final symbolic layout. The rest of Figure 5.5 shows the various symbolic layout the the same inverter. Figure 5.6 shows the symbolic layouts of same inverter by using Metal2/Metal3 layers. Figure 5.7 shows various methods for laying out large inverter.
Rung-Bin Lin
5-12
Rung-Bin Lin
5-13
5.4.3 Pseudo-nMOS
Fig. 5.27 The design of this style of gate involves ratioed transistor sizes to ensure correct operation. The gain ratio of n-driver transistors to p-transistor load, yield sufficient high and low logic levels. Problems
Static power consumption Low output low noise margin.
driver load
, has to be selected to
Rung-Bin Lin
5-14
Rung-Bin Lin
5-15