Lab 6 - ECE 421L 

Authored by Leanna Guevara, guevaral@unlv.nevada.edu

October 20, 2014

   

Design, layout and simulation of a CMOS NAND gate, XOR gate and Full Adder

    

We will be using Tutorial_4 for the completion of the lab. The tutorial goes over how to create the schematic and layout of a 2 input NAND gate.

   
2-input NAND Gate

Schematic:

Creating the schematic should a simple process if we have been copying the libraries from previous tutorials and labs. Create a new cell and use the inverter cell created from lab 5, this will allow us to copy the nmos and pmos symbols already in place.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND1.JPG

    

Symbol:

Once the schematic has been checked and saved with no errors we can create the symbol (Create->Cell view->From Cell view). Make sure the inputs and output pins are in the correct location by displaying them (q->display value)

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND2.JPG   
Layout:
Copy the inverter layout from lab 5 to make life easier, we can copy the parts available instead of searching for them again.
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND8.JPG
   
Because there are two inputs this time we need a second nmos and pmos. Copy the pmos and nmos (Select->C->Drag to desired location) and align one set of contacts so it just looks like a giant nmos or pmos. We do not need the metal in between the two MOSFETS, there fore we can flatten them in order to seperate the parts (Select both MOSFETS->Edit->Hierarchy->flatten)
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND9.JPG
   
After clicking flatten the following window appears, make sure to deselect the box for Preserved Pins and Preserved Pins Geometries.
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND10.JPG
   
The final layout should look like the following
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND11.JPG
Notes
LVS
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND12.JPG
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/NAND13.JPG
   
2-Input XOR Gate
Schematic
Just like NAND gate its best to just copy the cells to save time.
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/XOR1.JPG
   
Symbol:
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/XOR2.JPG

Layout:
This is where the lab gets confusing, I copied the inverter cell and copied the how everything was placed to get an understanding of the layout.
http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/XOR3.JPG

 Becareful when crossing and connecting layers. It took a while to correctly connect everything, the final layout should look like

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/XOR4.JPG

    

LVS:

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/XOR5.JPG

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/XOR6.JPG

    

To test the gates (NAND, XOR, and INVERTED) are working properly we will run a simulation

Schematic:

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/gate.JPG

Simulation:

The pulse for input A and B are differnerent, variation in the pulse completely changes the simulation results.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/gate2.JPG

   

Full-Adder

Schematic:

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA1.JPG

    

Symbol:

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA2.JPG

        

Layout:

Because there are many components and its easy to get lost I layed out the nand and xor gates similiar to the order in the schematic.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA3.JPG

The next step is to connect the inputs and outputs. Make sure to DRC the layout to ensure the rules are being followed.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA4.JPG

    

LVS:

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA5.JPG

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA6.JPG

    

Simulation:

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA7.JPG

    

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/FA8.JPG

This concludes Lab 6.

Remember to download and email the file to yourself for safe keeping.

http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%206/zip.JPG

Return to EE 421 Labs