Lab 6: Design, Layout, and Simulation of NAND Gate, XOR Gate, and Full-Adder

By Bryan Callaway- Email: callab2@unlv.nevada.edu

Last edited: 10/20/2020

   

Lab description: In this lab we covered the design, layout, and simulation of a NAND gate, XOR gate, and Full-Adder in the C5 process.


Prelab simulation:
In the prelab, we designed a NAND gate in the C5 process and performed a simulation:
1
2
LVS param:
param
After fixing things:
adj

Lab:
NAND Gate Design:
I started the design by creating a schematic for the NAND gate:
3

Next, I created a symbol view:
4

After this, I made the layout for the NAND gate (and extracted it):
layextracted
LVS/DRC:
drclvs

(I decided to adjust the NAND later! This was done so it would match the height of my XOR gate layout for the full-adder design)
NANDAJDLVS adjdrcadj

Simulation and truth table:
nand
nandsim
There are minor "glitches" in these results (look at the spikes in the output /out). They occur because the delays in the timing are not balanced. This problem could easily be rectified with a buffer. We can make a simple buffer by connecting two inverters together: the output of one inverter going into the input of the next. This is left as an exercise for the reader.

ABAnandB
001
011
101
110

XOR Gate Design:

First, I created a schematic:

XOR schematic

Next, I created a symbol view:

XOR symbol

Then I made the layout/extracted the design:

layoutextracted my man
LVS/DRC:
lvsxor

Simulation of XOR gate:
circcirc
epic
ABAxorB
000
011
101
110

Full-Adder Design:
Alright, now here comes the moment we've all been waiting for. Taking the designs of our NAND and XOR gates and using them to make one bad and wicked full-adder of truly epic proportions. I started this mean daddy-o off by creating a schematic:
Full adder
Next, I created a symbol view:
fasym
Rockin!!!!!

After this, I used the layouts for my XOR and NAND gates in order to create a layout:
absolute monster
extracted
Look at this absolute behemoth! 

LVS/DRC:
drccccfa

Simulation/Truth table:
owo
Each input is set at a different period...

ms
Oh yeah, look at that MS Paint prowess... I should include this on my resume!

ABCinSumCout
00000
00110
01010
01101
10010
10101
11001
11111


Conclusions...
Designing the logic gates and full-adder in this lab taught me a large amount of information about CMOS technology and the C5 process. We can create any logic gate that we want with the NAND gate, it's "universal." I feel as if this lab allowed me to gain a deeper understanding of CMOS design and digital logic.


Return...