Lab 6 - EE 421L 

Authored by Larri Gomez, gomezl6@unlv.nevada.edu

October 11, 2023 

  

Lab description

In this lab, we design a 2-input NAND gate and 2-input XOR gate by creating the schematic, layout, and symbol for each. We then have to simulate them to verify that they work by using the symbols we made.Then, we finish off by designing the schematic, layout, and symbol for a full adder and verify it by simulating it.

Pre Lab 

For the pre lab, we are asked to go through Tutorial 4 which has making a schematic, layout, and symbol of a NAND gate and then simulate it to verify it works. We start off by copying our Tutorial 3 into the Tutorial 4 library and then proceed by creating the schematic. 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre1.png

After checking for no errors, we can then create our symbol which should look like this. 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre2.png

We can then proceed making our layout. The tutorial has us making to where the PMOS is 12u/0.6u which would not work because the PMOS in our schematic is 6u/0.6u. This is the 12u/0.6u.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre3.png

This is the layout with the PMOS at 6u/0.6u which is the correct one.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre4.png

DRC clean

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre5.png 

LVS clean 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre6.png

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/pre7.png

Lab Work

For the lab, we are supposed to create 2-input NAND and XOR gates and then verify them by simulating them and then with those gates create a full adder and also verify it by simulating. First, well start off with the NAND gate which is the same as the one we did in the pre lab. This is the schematic for it. 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/1.png

After checking for no errors, we can then create the corresponding symbol for the schematic which should look like this.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/2.png

Now, we can go on to creating the layout for the gate which looks like this.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/3.png

DRC clean 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/4.png

Extracted view of the layout that will be used for the LVS.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/5.png

Setting up the LVS.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/6.png

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/7.png

Now, we will go onto the 2-input XOR gate and we'll start off by making the schematic.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/8.png

After checking for no errors, we can then create the XOR symbol.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/9.png

Now, we make the layout for the XOR gate.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/10.png

DRC clean 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/11.png

Extracted view that will be used for the LVS.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/12.png

LVS clean 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/13.png

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/14.png

Now we will test out the NAND and XOR by creating a schematic with the symbols that we made.

 https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/15.png

Now we can simulate it and this is what I got which gives the outputs for the 4 inputs for the NAND and XOR. It also seems that the output is coming out slightly glitchy which could be because of delays in the input which is not allowing to instantly get the next output.   

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/16.png

Lastly, we have to design a Full Adder which we can start by making the schematic.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/17.png

After checking for errors, we can then make the symbol for the Full Adder. 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/18.png

Now we can make the layout for the Full Adder which I make use of the layouts I already have for the NAND and the XOR and then make the connections for the new inputs and outputs.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/19.png

DRC clean 

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/20.png

This is the extracted view that will be used for the LVS.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/21.png

LVS clean

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/22.png

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/23.png

Now to make a schematic with the Full Adder symbol to simulate.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/24.png

This is what I got for my simulation which matches up perfectly with the table.

https://cmosedu.com/jbaker/courses/ee421L/f23/students/gomezl6/lab6/Pictures/25.png

This is the zip file containing my work for this lab lab6_lg.zip

Return to my Labs 

Return to EE421L Labs