Lab 6 - ECE 421L 

Quinton Micheau

10/19/2020

micheauq@unlv.nevada.edu

Lab 6

  

Design, layout, and simulation of a CMOS NAND gate, XOR gate, and Full-Adder


To start, Tutorial 4 goes over the basics of laying out and drawing the schematic of a NAND gate.


Schmatic Layout
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/tut4_schematic.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/nand2_layout.JPG
Setup
Results
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/tut4_setup.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/tut4_output.JPG



Lab Results


NAND2
Schematic
Layout
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/nand2_schematic.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/nand2_layout.JPG
Simulation
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/nand2_sim.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/nand2_sim_schematic.JPG

XOR2
Schematic
Layout
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_schematic.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_layout.JPG
Simulation
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_sim.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_sim_schematic.JPG


Full Adder
Schematic
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/fulladder_schematic.JPG

Simulation results with Truth Table
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/fulladder_output.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/fulladder_truthtable.JPG
Layout
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/fulladder_layout.JPG
LVS
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/fulladder_LVS.JPG


Symbol
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/fulladder_symbol.JPG


Glitches


Recall from the above simulation outputs that were some irregularities in the XOR gate seen below. Notice the downwards spike in between the output highs.  Ideally, we would like a smooth output.
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_sim.JPG
Zooming in on the glitch
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_zoomin.JPG

In an attempt to smooth out the signal, inverter buffers were inserted between the input and the XOR gate.
12u Inverter Buffer
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_schematic_1.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_output1.JPG
48u Inverter Buffer
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_schematic_2.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_output2.JPG



As see above, the glitching does apper to fade with the input coming from another logic gate. 

Now, taking the idea a bit further...

http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_lotsofinverter.JPG
http://cmosedu.com/jbaker/courses/ee421L/f20/students/micheauq/Lab%206/Images/xor2_glitch_lotsofinverter_output.JPG


Unfortunately, it appears as though since the gates cant change instantaneously, there will always be a moment between switching where the output of the XOR2 gate will drop to zero. Even if it is less than a nanosecond.



 Lab6.zip


Return to EE 421L Labs