Lab 6 - ECE 421L 

Authored by Fred Hathaway,

hathawa6@unlv.nevada.edu

11 Oct 2013 

  

Lab 6: Design, layout, and simulation of CMOS NAND/NOR/XOR gates and a full-adder:

 

In this lab, I will be designing a CMOS NAND/NOR?XOR gate and a full-adder using Electric and simulating them using IRSIM and ALS (asynchronchronous logic simulator).  

 

I completed the prelab and followed tutorial 4 and electric video_11.

 

By following the prelab tutorial I was able to use the NAND gate that was I created from the tutorial.  Both the PMOS and NMOS MOSFETS are 10/2.  I also created an icon view seen below with the schematic view.

 

6_NAND_schem.JPG

 

Notice that the icon view is the commonly seen NAND gate.  This will make the schematic view look much better when we simulate.

 

6_NAND_icon.JPG

 

Next I created a layout for the NAND gate seen below.  Check for DRC and NCC errors.  Correct any errors that you may encounter.

 

6_NAND_layout.JPG

 

Next I created a simulation schematic with the icon that I created.  Notice that I connected VDD to one of the inputs.:

 

6_NAND_sim_schem.JPG

 

Seen below is the resulting waveform in LTSpice.

 

6_NAND_wave.JPG

 

In addition to the shematic simulation, I also created a layout sim cell and ensured we get the same result for the layout cell.  Notice that the inputs and outputs are connected to metal1.  Make sure to check for ERC, NCC and DRC

 

6_NAND_layout_sim.JPG

 

The simulation results are what I expected.

 

6_NAND_layout_wave.JPG

  

 

 Next I created another schematic for IRSIM and LTSpice.

 

6_NAND_IRSIM_schem.JPG

 

LTSpice results.  We see what when both inputs are high, the output is low.:

 

6_NAND_sim_wave.JPG

 

IRSIM results.  As we can see when both inputs are high, the output is low.:
 
6_NAND_IRSIM_wave.JPG
 
NOR gate:
For the XOR gate, I repeated the above steps to draft the schematics, icon and layouts.
 
6_XOR_schem.JPG

Icon for the NOR gate.  Again I created an icon view that represents the common symbol for the NOR gate:
6_NOR_icon.JPG

NOR layout:
6_NOR_layout.JPG

Schematic view for simulation:
6_NOR_sim.JPG
Layout view for simulation:
6_NOR_layout_sim.JPG

NOR simulation:
6_NOR_wave.JPG
Next, I will create another schematic for the IRSIM and LTSpice for the logic simulation:
6_NOR_IRSIM_Schem.JPG
LTSpice logic simulation:
6_NOR_LTS_sim.JPG
IRSIMfor NOR gate:
6_NOR_IRSIM_wave.JPG


XOR gate:
For the XOR gate, I repeated the above steps to draft the schematics, icon and layouts.
Schematic view:
6_XOR_schem.JPG
Icon view:
6_XOR_icon.JPG
Layout:
6_XOR_layout.JPG
XOR simulation schematic:

6_XOR_schem1.JPG

XOR simulation layout:
6_XOR_layout_sim.JPG
Simulation results:

6_XOR_sim_wave.JPG

LTSpice and IRSIM logic schematic:

6_XOR_sim_schem.JPG
LTSpice and IRSIM logic simulations:

6_XOR_2_spice.JPG

IRSIM results:
6_XOR_IRSIM_wave.JPG

Full adder:
Next, I will create a full adder using the gates created above:
6_full_adder1_schem.JPG

Icon for the full adder:
6_full_adder_icon.JPG

Full adder simulation schematic using the icon that I created:
6_full_adder_sim_schem.JPG
The simuation wave form:
full_adder1_wave.JPG

I designed another full adder using 3 NAND gates and 2 XOR gates:
full_adder2_schem.JPG

I used the same icon from the first full adder:
6_full_adder2_layout.JPG
IRSIM schematic:
6_full_adder_2_sim_schem.JPG

LTSPice logic simulation results:
6_full_adder_LTS.JPG

IRSIM results:
6_full_adder_2_IRSIM.JPG

I backed up my lab work by archiving directory, emailing and posting on the cmosedu website.

Copy of lab6_Hathaway.jelib file
 
Return to EE 421L Labs