Lab 6 - EE 421L 

Vrigiank@unlv.nevada.edu

Kirk Vrigian
10/10/15

In this lab we will learn how to create a NAND gate, XOR gate and a full adder using these two gates.

 

We are using 6u/600u NMOS and PMOS for these gates.

 

2-input NAND gate schematic.
 

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/nand_schematic.JPG

Using this schematic, we crate a nand symbol.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/nand_symbol.JPG

The layout of our NAND gate, connecting the two NMOS & PMOS by overlapping the gate of the PMOS & NMOS. Then deleting the center metal 1 rail in the pmos, flattening them and not preserving pins.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/Nand_layout.JPG
DRC


http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/NAND_DRC.JPG

Extracted view

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/nand_extracted.JPG

LVS
http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/nand_lvs.JPG
http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/nand_lvs2.JPG

Our XOR gate schematic

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/xor_schematic.JPG


Create a symbol from the schematic

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/XOR_symbol.JPG

Layout of the XOR gate.
Due to the complexity of the XOR gate, I used metal 2 to bridge some of the connections. This was done using m2_m1 & m1_poly contacts.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/xor_layout.JPG

DRC layout and ensure no errors.
http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/xor_drc.JPG

Extracted view of XOR gate.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/xor_extracted.JPG

LVS of extracted layout

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/xor_lvs.JPG

Now to simulate the NAND & XOR gates.

We will use a schematic utilizing the NAND, XOR, & the 12u/6u inverter from the previous lab.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/sim_schematic.JPG

For our pulse sources, A input will use these settings.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/input_A.JPG

Input source B, will use these pulse settings, with one half the pulse width & period.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/input_B.JPG

Launch ADE L & simulate the schematic using a .tran of 400n.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/ade_L.JPG

Which should result in the following.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/sim_results.JPG

Now to create a full adder using the NAND & XOR gates.
Full adder schematic below.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_schematic.JPG

Create a symbol of the schematic.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_symbol.JPG

The layout of the full adder. This was accomplished using three NAND gates & two XOR gates. To create this layout, instantiate the layout views of the NAND and XOR gates. Using the flatten option in the Edit -> Heirarchy -> Flatten, allows the user to stretch the NAND gate and XOR gate enough to allow for more connections for the adder. Also connect the vdd! and the gnd! connections of the MOSFETS into a big row of ntaps and ptaps.

The inputs are the on the left & the output/cout are on the right.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_layout.JPG

Ensure the layout DRC's

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_DRC.JPG

The extracted view of the full adder.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_extracted.JPG

LVS the extracted vs. the schematic.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_LVS.JPG

Now to simulate the symbol created for the full adder, simulate in a similar fashion to the NAND & XOR gate schematic. Create a schematic using the symbol & attaching the same A & B pulse sources, but also include the Cin pulse source. Cin will be 1/2 the pulse width/period of B & 1/4 the pulse width/period of A.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_simulation_schematic.JPG

Cin pulse settings.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/cin_pulse.JPG

Open ADE L & simulate the adder by running a .tran at 400n again.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/ade_L_adder.JPG

The following results will occur (with split traces).

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/full_adder_results.JPG

All of the files for this lab can be found here.

Be sure to backup all your lab by uploading it to a drive or online.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/vrigiank/Lab6/pictures/upload.JPG







Return to EE 421L Labs