ECE 658 ( VLSI Design Principles ) Lab #1

Design and Simulation of A Two Input CMOS NAND Gate

Submitter: Hui Zhu ( huizhu@ecs.umass.edu )

Date: 10/03/2001

Objective  

Design a CMOS layout for a 2-input nor gate. And it should reach the following system requirement:

  • The capability to drive 32 minimum size CMOS inverters (Wn=.3um, Wp=.6um) and 50fF of lumped wiring cap

  • The propagation delay must be less then 300ps (Use 50ps rise and fall times for the inputs)

  • The gate must also fit our standard cell library; height = 100 lambda with 20lambda rails for vdd and ground

  • Minimize the width of the cell

  • Only use M1 and M2 layers

  • The inputs and output must be accessible from the top of the cell (VDD side) in metal 2

I. System Design:

       Given:  A two-input NAND Gate:

A ( Input 1 )

B ( Input 2 )

F (Output)

0

0

1

0

1

0

1

0

0

1

1

0

II. Logic Design:

The schematic of the two input CMOS NAND gate includes two parallel pmos transistors and two series nmos transistors. As long as an input has a LOW input, one of the two pmos transistors turns on while one of the two series transistors cuts off. The output port begins to charge and has a HIGH output.

The simulation output is done by IRSIM and the logical function of NAND Gate is thus verified.

III. Circuit Design:

Hand Calculation and Assumptions:

1. The load of the gates can be approximated calculated by the following:

Cg = (Number of Gates)*(Cap + Can) = N*(Cox*Wp*Lp +Cox*Wn*Ln)

Cg = 32*(9.3fF/um2*.3um*.2um+ 9.3fF/um2*.6um*.2um) = 53.568 fF

Cw = 50 fF

CL= Cw + Cg = 50fF + 53.568fF = 103.568 fF

2. In sub-micron technology, the ID is increasing proportional to the (VGS - VT). Page54 in the textbook gives the following formula to calculate the current:

ID = k v sat Cox W ( VGS - VT ) for VDS>=VDSAT (saturated region) 

From Page134, we have the formula for the propagation delay computation:

tp = CL*(VOH - VOL) / 2 / | Iav |

For the worst case tPLH, only one pmos on,  therefore, 

tPHL =CL * Vdd / ( Kp * Wp * ( VDD - | VTp | ) )

tPLH =CL * Vdd / ( ( Kn / 2 )* Wn * ( VDD - | VTn | ) )

3. Given hand calculation parameters:

 

n-channel

p-channel

Cox

9.30 fF/um2

9.30 fF/um2

k'

74.4E-6A/V2 *

29.0E-6A/V2 *

K = k v sat Cox

275A/(m-V)

105A/(m-V)

VT

0.4 V

-0.42 V

 Hand calculation results for tP=300ps: (Ln = Lp =200 nm)

Wp = 4.28 um

Wn = 3.23 um

Hand Calculation vs. Simulation Results: 

Hand Calculation Results

Simulation Results

tPHL

300ps

135ps

tPLH

300ps

132ps

tp

300ps

133.5ps

Since the worst case occurs when:  For tPHL,  the worst case occurs when the inputs change from (0, 0) to (1,1)

                                                                          For tPLH, the worst case occurs when the inputs change from (1,1) to (1,0) or from (1,1) to (0,1)

Therefore, if I got the worst tphl and tplh smaller than 300ps, the delay time will definitely with in the 300ps. And all my following results are in the worst case.

You may see the tPHL & tPLH clearly from the  waveform of original size of Nand Gate. You may also look the enlarged waveform for tpHL and waveform for tpLH.

NAND Gate Size Modification:

From simulation, we could see that tp is far away from 300ps, that means we have a lot of space to decrease the Wp and Wn. Here lists my simulation results:

Wp Wn tPHL tPLH
4.3um 3.2um 135ps 132ps
4.0um 3.0um 140ps 140ps
2.0um 2.0um 180ps 240ps
1.8um 1.6um 220ps 260ps

I finally choose the size as following:

Wp = 1.8 um

Wn = 1.6 um

The HSPICE File is extracted from the schematic, running HSPICE and AWAVES we can get the tPHL and tPLH , please refer to the waveform for the tpHL and tpLH. Also the logical function is verified by the IRSIM.

IV. Layout Design:

  • The Cadence (layout editor) is used to draw the Layout 2-input NAND gate with the modified size. 

  • Verify the functionality of the layout using IRSIM. Here is the Simulation Result

  • HSPICE is used to test the performance of system. A HSPICE file was generated after the extraction, and the  waveform for tpHL & waveform for tpLH  clearly indicated the tphl and tplh which are obtained from point to point measurement in AWAVES display window. 

  • The dynamic and static power of the system: 

    • Pstatic = Ileakage * Vdd

    • Pdynamic = CL * Vdd2 * f

    • From the definition of the static power, we know that for NAND GATE, the power can be calculated when the 2 inputs are both 0, and theoriclly it should be 0, but since there are some current leakage, we may still get some small power. And it is calculated in the hspice file.

    • For the dynamic power consumption, it is due to the load capacitance CL, it will charge and discharge if the output changes. The average dynamic power consumption in a period is calculated by hspice.   

    • Here is the nand2md.mt0 file which shows the dynamic and static power:

$DATA1 SOURCE='HSPICE' VERSION=' 20'
.TITLE ' '
pavghl pavglh dynamic static temper alter#
9.700e-05 9.683e-05 9.692e-05 1.214e-11 25.0000 1.0000

  • Summary: For 2-input NAND GATE I designed, it has the following characteristics (Ln=Lp=0.2uM)

Wp Wn tPHL tPLH Pstatic Pdynamic
1.8um 1.6um 199ps 2490ps 1.214e-11W 9.692e-5W

 

Conclusion

In this lab, a 2-input NAND gate is successfully designed on the base of .18um technology. The logical function of NAND gate is verified by the IRSIM, and the layout is drawn by the Cadence. The HSPICE files are extracted both from schematic and the layout. All the simulation results from HSIPCE files show that all the requirements are satisfied.