Introduction to CMOS VLSI Design MOS devices: static and dynamic behavior Outline DC Response Logic Levels and Noise Margins Transient Response Delay Estimation MOS equations CMOS VLSI Design Slide 2 Activity 1) If the width of a transistor increases, the current will increase decrease not change 2) If the length of a transistor increases, the current will increase decrease not change 3) If the supply voltage of a chip increases, the maximum transistor current will increase decrease not change 4) If the width of a transistor increases, its gate capacitance will increase decrease not change 5) If the length of a transistor increases, its gate capacitance will increase decrease not change 6) If the supply voltage of a chip increases, the gate capacitance of each transistor will increase decrease not change MOS equations CMOS VLSI Design Slide 3 Activity 1) If the width of a transistor increases, the current will increase decrease not change 2) If the length of a transistor increases, the current will increase decrease not change 3) If the supply voltage of a chip increases, the maximum transistor current will increase decrease not change 4) If the width of a transistor increases, its gate capacitance will increase decrease not change 5) If the length of a transistor increases, its gate capacitance will increase decrease not change 6) If the supply voltage of a chip increases, the gate capacitance of each transistor will increase decrease not change MOS equations CMOS VLSI Design Slide 4 DC Response DC Response: Vout vs. Vin for a gate Ex: Inverter – When Vin = 0 -> Vout = VDD – When Vin = VDD -> Vout = 0 VDD – In between, Vout depends on Idsp transistor size and current Vin Vout – By KCL, must settle such that Idsn Idsn = |Idsp| – We could solve equations – But graphical solution gives more insight MOS equations CMOS VLSI Design Slide 5 Transistor Operation Current depends on region of transistor behavior For what Vin and Vout are nMOS and pMOS in – Cutoff? – Linear? – Saturation? MOS equations CMOS VLSI Design Slide 6 nMOS Operation Cutoff Linear Saturated Vgsn < Vgsn > Vgsn > Vdsn < Vdsn > VDD Vin Idsp Vout Idsn MOS equations CMOS VLSI Design Slide 7 nMOS Operation Cutoff Linear Saturated Vgsn < Vtn Vgsn > Vtn Vgsn > Vtn Vdsn < Vgsn – Vtn Vdsn > Vgsn – Vtn VDD Vin Idsp Vout Idsn MOS equations CMOS VLSI Design Slide 8 nMOS Operation Cutoff Linear Saturated Vgsn < Vtn Vgsn > Vtn Vgsn > Vtn Vdsn < Vgsn – Vtn Vdsn > Vgsn – Vtn VDD Vgsn = Vin Vin Vdsn = Vout MOS equations Idsp Vout Idsn CMOS VLSI Design Slide 9 nMOS Operation Cutoff Linear Saturated Vgsn < Vtn Vin < Vtn Vgsn > Vtn Vin > Vtn Vdsn < Vgsn – Vtn Vout < Vin - Vtn Vgsn > Vtn Vin > Vtn Vdsn > Vgsn – Vtn Vout > Vin - Vtn VDD Vgsn = Vin Vin Vdsn = Vout MOS equations Idsp Vout Idsn CMOS VLSI Design Slide 10 pMOS Operation Cutoff Linear Saturated Vgsp > Vgsp < Vgsp < Vdsp > Vdsp < VDD Vin Idsp Vout Idsn MOS equations CMOS VLSI Design Slide 11 pMOS Operation Cutoff Linear Saturated Vgsp > Vtp Vgsp < Vtp Vgsp < Vtp Vdsp > Vgsp – Vtp Vdsp < Vgsp – Vtp VDD Vin Idsp Vout Idsn MOS equations CMOS VLSI Design Slide 12 pMOS Operation Cutoff Linear Saturated Vgsp > Vtp Vgsp < Vtp Vgsp < Vtp Vdsp > Vgsp – Vtp Vdsp < Vgsp – Vtp VDD Vgsp = Vin - VDD Vtp < 0 Vin Vdsp = Vout - VDD MOS equations Idsp Vout Idsn CMOS VLSI Design Slide 13 pMOS Operation Cutoff Linear Saturated Vgsp > Vtp Vin > VDD + Vtp Vgsp < Vtp Vin < VDD + Vtp Vdsp > Vgsp – Vtp Vout > Vin - Vtp Vgsp < Vtp Vin < VDD + Vtp Vdsp < Vgsp – Vtp Vout < Vin - Vtp VDD Vgsp = Vin - VDD Vtp < 0 Vin Vdsp = Vout - VDD MOS equations Idsp Vout Idsn CMOS VLSI Design Slide 14 I-V Characteristics Make pMOS is wider than nMOS such that bn = bp Vgsn5 Vgsn4 Idsn Vgsn3 -Vdsp Vgsp1 Vgsp2 -VDD 0 VDD Vdsn Vgsp3 Vgsp4 Vgsn2 Vgsn1 -Idsp Vgsp5 MOS equations CMOS VLSI Design Slide 15 Current vs. Vout, Vin Idsn, |Idsp| Vin0 Vin5 Vin1 Vin4 Vin2 Vin3 Vin3 Vin4 Vin2 Vin1 Vout MOS equations CMOS VLSI Design VDD Slide 16 Load Line Analysis For a given Vin: – Plot Idsn, Idsp vs. Vout – Vout must be where |currents| are equal in Idsn, |Idsp| Vin0 Vin5 Vin1 Vin4 Vin2 Vin3 Vin3 Vin4 Vin2 Vin1 Vout MOS equations CMOS VLSI Design VDD Vin Idsp Vout Idsn VDD Slide 17 Load Line Analysis Vin = 0 Vin0 Idsn, |Idsp| Vin0 Vout MOS equations CMOS VLSI Design VDD Slide 18 Load Line Analysis Vin = 0.2VDD Idsn, |Idsp| Vin1 Vin1 Vout MOS equations CMOS VLSI Design VDD Slide 19 Load Line Analysis Vin = 0.4VDD Idsn, |Idsp| Vin2 Vin2 Vout MOS equations CMOS VLSI Design VDD Slide 20 Load Line Analysis Vin = 0.6VDD Idsn, |Idsp| Vin3 Vin3 Vout MOS equations CMOS VLSI Design VDD Slide 21 Load Line Analysis Vin = 0.8VDD Vin4 Idsn, |Idsp| Vin4 Vout MOS equations CMOS VLSI Design VDD Slide 22 Load Line Analysis Vin = VDD Vin0 Idsn, |Idsp| Vin5 Vin1 Vin2 Vin3 Vin4 Vout MOS equations CMOS VLSI Design VDD Slide 23 Load Line Summary Idsn, |Idsp| Vin0 Vin5 Vin1 Vin4 Vin2 Vin3 Vin3 Vin4 Vin2 Vin1 Vout MOS equations CMOS VLSI Design VDD Slide 24 DC Transfer Curve Transcribe points onto Vin vs. Vout plot Vin0 Vin5 Vin1 Vin4 Vin2 Vin3 Vin3 Vin4 Vin2 Vin1 Vout MOS equations VDD A B Vout VDD C D 0 Vtn VDD/2 E VDD+Vtp VDD Vin CMOS VLSI Design Slide 25 Operating Regions Revisit transistor operating regions Region nMOS VDD pMOS A A B B Vout C C D D 0 E Vtn VDD/2 E VDD+Vtp VDD Vin MOS equations CMOS VLSI Design Slide 26 Operating Regions Revisit transistor operating regions Region nMOS A Cutoff Linear B Saturation Linear C Saturation Saturation D Linear Saturation E Linear VDD pMOS A B Vout Cutoff C D 0 Vtn VDD/2 E VDD+Vtp VDD Vin MOS equations CMOS VLSI Design Slide 27 Beta Ratio If bp / bn 1, switching point will move from VDD/2 Called skewed gate Other gates: collapse into equivalent inverter VDD bp 10 bn Vout 2 1 0.5 bp 0.1 bn 0 Vin MOS equations CMOS VLSI Design VDD Slide 28 Noise Margins How much noise can a gate input see before it does not recognize the input? Output Characteristics Logical High Output Range VDD Input Characteristics Logical High Input Range VOH NMH VIH VIL Indeterminate Region NML Logical Low Output Range VOL Logical Low Input Range GND MOS equations CMOS VLSI Design Slide 29 Logic Levels To maximize noise margins, select logic levels at Vout VDD b p/b n > 1 Vin Vout Vin 0 VDD MOS equations CMOS VLSI Design Slide 30 Logic Levels To maximize noise margins, select logic levels at – unity gain point of DC transfer characteristic Vout Unity Gain Points Slope = -1 VDD VOH b p/b n > 1 Vin VOL Vin 0 Vtn MOS equations Vout VIL VIH VDD- VDD |Vtp| CMOS VLSI Design Slide 31 Transient Response DC analysis tells us Vout if Vin is constant Transient analysis tells us Vout(t) if Vin(t) changes – Requires solving differential equations Input is usually considered to be a step or ramp – From 0 to VDD or vice versa MOS equations CMOS VLSI Design Slide 32 Inverter Step Response Ex: find step response of inverter driving load cap Vin (t ) Vin(t) Vout (t t0 ) dVout (t ) dt MOS equations Vout(t) Cload Idsn(t) CMOS VLSI Design Slide 33 Inverter Step Response Ex: find step response of inverter driving load cap Vin (t ) u(t t0 )VDD Vout (t t0 ) dVout (t ) dt MOS equations Vin(t) Vout(t) Cload Idsn(t) CMOS VLSI Design Slide 34 Inverter Step Response Ex: find step response of inverter driving load cap Vin (t ) u(t t0 )VDD Vout (t t0 ) VDD dVout (t ) dt MOS equations Vin(t) Vout(t) Cload Idsn(t) CMOS VLSI Design Slide 35 Inverter Step Response Ex: find step response of inverter driving load cap Vin (t ) u (t t0 )VDD Vin(t) Vout (t t0 ) VDD dVout (t ) I dsn (t ) dt Cload I dsn (t ) Vout Vout MOS equations Vout(t) Cload Idsn(t) t t0 VDD Vt VDD Vt CMOS VLSI Design Slide 36 Inverter Step Response Ex: find step response of inverter driving load cap Vin (t ) u (t t0 )VDD Vin(t) Vout (t t0 ) VDD dVout (t ) I dsn (t ) dt Cload 0 2 b I dsn (t ) V V DD 2 V (t ) b VDD Vt out 2 MOS equations Vout(t) Cload Idsn(t) t t0 Vout VDD Vt V (t ) V V V out out DD t CMOS VLSI Design Slide 37 Inverter Step Response Ex: find step response of inverter driving load cap Vin (t ) u (t t0 )VDD Vin(t) Vout (t t0 ) VDD Vout(t) Cload dVout (t ) I dsn (t ) dt Cload 0 2 b I dsn (t ) V V DD 2 V (t ) b VDD Vt out 2 MOS equations Idsn(t) Vin(t) t t0 Vout VDD Vt V (t ) V V V out out DD t CMOS VLSI Design Vout(t) t0 t Slide 38 Delay Definitions tpdr: tpdf: tpd: t r: tf: fall time MOS equations CMOS VLSI Design Slide 39 Delay Definitions tpdr: rising propagation delay – From input to rising output crossing VDD/2 tpdf: falling propagation delay – From input to falling output crossing VDD/2 tpd: average propagation delay – tpd = (tpdr + tpdf)/2 tr: rise time – From output crossing 0.2 VDD to 0.8 VDD tf: fall time – From output crossing 0.8 VDD to 0.2 VDD MOS equations CMOS VLSI Design Slide 40 Delay Definitions tcdr: rising contamination delay – From input to rising output crossing VDD/2 tcdf: falling contamination delay – From input to falling output crossing VDD/2 tcd: average contamination delay – tpd = (tcdr + tcdf)/2 MOS equations CMOS VLSI Design Slide 41 Simulated Inverter Delay Solving differential equations by hand is too hard SPICE simulator solves the equations numerically – Uses more accurate I-V models too! But simulations take time to write 2.0 1.5 1.0 (V) Vin tpdf = 66ps tpdr = 83ps Vout 0.5 0.0 0.0 200p 400p 600p 800p 1n t(s) MOS equations CMOS VLSI Design Slide 42 Delay Estimation We would like to be able to easily estimate delay – Not as accurate as simulation – But easier to ask “What if?” The step response usually looks like a 1st order RC response with a decaying exponential. Use RC delay models to estimate delay – C = total capacitance on output node – Use effective resistance R – So that tpd = RC Characterize transistors by finding their effective R – Depends on average current as gate switches MOS equations CMOS VLSI Design Slide 43 RC Delay Models Use equivalent circuits for MOS transistors – Ideal switch + capacitance and ON resistance – Unit nMOS has resistance R, capacitance C – Unit pMOS has resistance 2R, capacitance C Capacitance proportional to width Resistance inversely proportional to width d g d k s s kC R/k 2R/k g g kC kC s MOS equations kC d k s kC g kC d CMOS VLSI Design Slide 44 Example: 3-input NAND Sketch a 3-input NAND with transistor widths chosen to achieve effective rise and fall resistances equal to a unit inverter (R). MOS equations CMOS VLSI Design Slide 45 Example: 3-input NAND Sketch a 3-input NAND with transistor widths chosen to achieve effective rise and fall resistances equal to a unit inverter (R). MOS equations CMOS VLSI Design Slide 46 Example: 3-input NAND Sketch a 3-input NAND with transistor widths chosen to achieve effective rise and fall resistances equal to a unit inverter (R). 2 2 2 3 3 3 MOS equations CMOS VLSI Design Slide 47 3-input NAND Caps Annotate the 3-input NAND gate with gate and diffusion capacitance. 2 2 2 3 3 3 MOS equations CMOS VLSI Design Slide 48 3-input NAND Caps Annotate the 3-input NAND gate with gate and diffusion capacitance. 2C 2 2C 2C 2C 2 2C 2C 2C 3C 3C 3C MOS equations 2 CMOS VLSI Design 2C 2C 3 3 3 3C 3C 3C 3C Slide 49 3-input NAND Caps Annotate the 3-input NAND gate with gate and diffusion capacitance. 2 2 3 5C 3 5C 3 5C MOS equations 2 CMOS VLSI Design 9C 3C 3C Slide 50 Elmore Delay ON transistors look like resistors Pullup or pulldown network modeled as RC ladder Elmore delay of RC ladder t pd Ri to sourceCi nodes i R1C1 R1 R2 C2 ... R1 R2 ... RN C N R1 MOS equations R2 R3 C1 C2 RN C3 CMOS VLSI Design CN Slide 51 Example: 2-input NAND Estimate worst-case rising and falling delay of 2input NAND driving h identical gates. 2 2 A 2 B 2x MOS equations Y h copies CMOS VLSI Design Slide 52 Example: 2-input NAND Estimate rising and falling propagation delays of a 2input NAND driving h identical gates. 2 2 A 2 B 2x MOS equations Y 4hC 6C h copies 2C CMOS VLSI Design Slide 53 Example: 2-input NAND Estimate rising and falling propagation delays of a 2input NAND driving h identical gates. 2 2 A 2 B 2x R Y (6+4h)C MOS equations Y 4hC 6C h copies 2C t pdr CMOS VLSI Design Slide 54 Example: 2-input NAND Estimate rising and falling propagation delays of a 2input NAND driving h identical gates. 2 2 A 2 B 2x R Y (6+4h)C MOS equations Y 4hC 6C h copies 2C t pdr 6 4h RC CMOS VLSI Design Slide 55 Example: 2-input NAND Estimate rising and falling propagation delays of a 2input NAND driving h identical gates. 2 2 A 2 B 2x MOS equations Y 4hC 6C h copies 2C CMOS VLSI Design Slide 56 Example: 2-input NAND Estimate rising and falling propagation delays of a 2input NAND driving h identical gates. 2 2 A 2 B 2x x R/2 R/2 2C MOS equations Y (6+4h)C Y 4hC 6C h copies 2C t pdf CMOS VLSI Design Slide 57 Example: 2-input NAND Estimate rising and falling propagation delays of a 2input NAND driving h identical gates. 2 2 A 2 B 2x x R/2 R/2 2C MOS equations Y (6+4h)C Y 4hC 6C h copies 2C t pdf 2C R2 6 4h C R2 R2 7 4h RC CMOS VLSI Design Slide 58 Delay Components Delay has two parts – Parasitic delay • 6 or 7 RC • Independent of load – Effort delay • 4h RC • Proportional to load capacitance MOS equations CMOS VLSI Design Slide 59 Contamination Delay Best-case (contamination) delay can be substantially less than propagation delay. Ex: If both inputs fall simultaneously 2 2 A 2 B 2x R R Y (6+4h)C MOS equations Y 4hC 6C 2C tcdr 3 2h RC CMOS VLSI Design Slide 60 Diffusion Capacitance we assumed contacted diffusion on every s / d. Good layout minimizes diffusion area Ex: NAND3 layout shares one diffusion contact – Reduces output capacitance by 2C – Merged uncontacted diffusion might help too 2C 2C Shared Contacted Diffusion Isolated Contacted Diffusion Merged Uncontacted Diffusion 2 2 3 3 3C 3C 3C MOS equations 2 CMOS VLSI Design 3 7C 3C 3C Slide 61 Layout Comparison Which layout is better? VDD A VDD B Y GND MOS equations A B Y GND CMOS VLSI Design Slide 62