Lab 6 - ECE 421L 

Authored by Michael Kajkowski,

10/13/2013

kajkowsk@unlv.nevada.edu  

   

For this lab we will designing CMOS nand, nor & xor logic gates, as well as a full adder.

We will be designing these circuits in schematic and layout cells. And finally

we will simulate our circuits (Using Spice & IRSIM). For this lab we will use layouts from other labs

to make the work easier. Remember to perform DRC, ERC & NCC often & backup all of your work!

 

  

First we will make a nand gate

 NAND_sch.JPG

You will want to use the inverter from last lab. Make the connections as seen above. Export the off page 

nodes. We will use 10/2 for both PMOS and NMOS (Remember to label the transistors using the 

set spice model). To make the icon use splines, you will need to select the spline and hit "y" so you can reshape 

the curves.

 

 The layout should look like....

NAND_layout.JPG

  

 Lets simulate....

 NAND_sch_sim.JPG

 

 Spice:

 

 NAND_sim.JPG

 IRSIM:

 NAND_irsim.JPG

 You can use the logic gate chart to verify these results. ( 1  1  will result in 0, all other combinations 

will result in 1).

 

 Now for the NOR gate:

  NAND_sch.JPG

 

 NOR layout:

 NOR_layout.JPG

 

 Simulations...

 NOR_sch_sim.JPG

 Spice:

 NOR_sim.JPG

 IRSIM:

 NOR_irsim.JPG

  (The NOR gate results in a 1 when outputs are 0, everything else is one).

 

 Finally the XOR gate:

  XOR_sch.JPG

  

  XOR layout:

 XOR_layout.JPG

 

 Simulations...

  

 XOR_sch_sim.JPG

 

 Spice:

 XOR_sim.JPG

 

 IRSIM:

 

 XOR_irsim.JPG

  (The XOR gate results in a one when the two outputs are different, and zero when they are the same).

  

 Now that we have completed making our gates, we can now use them to build a full adder.

 We will make one with two nand's, one nor, two xor's, and three inverters. We will

 then make a second full adder but using three nand's and two xor's. For each full adder be sure

 to make icons to run the simulations. We will run Spice and IRSIM simulations.

 First full adder:

  fulladder_sch.JPG

    Using the icons from the gates we made, we can construct this circuit seen above. Again, use splines

to make your icon.

 

 Simulations...

 fulladder_sch_sim.JPG

   

  Spice:

 fulladder_sim.JPG

  

 IRSIM:

 fulladder_irsim.JPG

   

   Here is a sample truth table for a full adder...

 fulladder_chart.JPG

 

 Second full adder:

  fulladder2_sch.JPG

  Notice that we are now using three nand gates and two xor gates.

  

 Layout:

  fulladder2_layout.JPG
 
Simulations...

 fulladder2_sch_sim.JPG

 

 Spice:

 fulladder2_sim.JPG

 

 IRSIM:

 fulladder_irsim.JPG

 

 

 REMEMBER TO BACKUP ALL OF YOUR WORK!!!

 

 backup.JPG

 

 My jelib file

 

Return to labs...