Lab 6 - ECE 421L
For the first part of the lab I created schematics for the 2-input NAND gate and the 2-input XOR gate using 6u/0.6u NMOSs and 6u/0.6u PMOSs. Examples of these gates represented by MOSFETs are found in chapter 12 of the CMOS textbook. I then generate symbols for each gate that coincided with the typical symbol for each gate. Below are images of the schematics and symbols of the the NAND and XOR gates.
A | Ai |
0 | 1 |
1 | 0 |
A | B | AnandB |
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
A | B | AxorB |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
For the last part of the lab I drafted a schematic and a layout of a full-adder using the cells for the NAND gate and the XOR gate. A symbol of the schematic was then created to represent the full-adder. The layout of the full-adder was verified to have passsed both DRC and LVS. Below are the images of the full-adder schematic, symbol, layout, DRC and LVS tests. .
Full-adder Schematic Full-adder Symbol
Full-adder Layout
Full-adder DRC Full-adder LVS
The symbol of the full-adder was then used in a schematic to test the operation of the full-adder, with each input having a pulse voltage source connected to match the input values given in the truth table below for the full-adder. The schematic was simulated using Spectre and the results were as expected with the outputs matching up with values given on the truth table. Below is the full-adder truth table, images of the schematic using the full-adder symbol and the results of the simlulation.a | b | cin | s | cout | |
0 | 0 | 0 | 0 | 0 | |
0 | 0 | 1 | 1 | 0 | |
0 | 1 | 0 | 1 | 0 | |
0 | 1 | 1 | 0 | 1 | |
1 | 0 | 0 | 1 | 0 | |
1 | 0 | 1 | 0 | 1 | |
1 | 1 | 0 | 0 | 1 | |
1 | 1 | 1 | 1 | 1 |
The glitches or false outputs given for the results of the full-adder occur for the same reason given above, where two or more inputs are on the falling edge or rising edge at the same time. This results in the output viewing these as being off or having no value and giving an output that coincides with these inputs being 0.
A zipfile of the cells used in this lab are placed here.
Return to EE 421L Lab