Lab 6 - ECE 421L

Authored by: WENLAN WU (Stephen)

E-mail: wuw2@unlv.nevada.edu

Date: 10/10/2013

 


Lab description

1.  Go through the tutorial_4 and Electric_video_11, learn to design the schematic and layout of nand and nor gates.

2. Follow the lab6 descriptions to design nand, nor, xor gates. Use LTspice and IRSIM to simulate these gates.

3. Use designed gates to make two types of full adder. One consists of two xors and two nands, one nor and three inverters. The other one is implemented by 3 nand and 2 xor gates.

2. Backup the Lab report and upload it to the CMOSedu.com for the future study and discussion.


Discussions & Captured Images:

NAND gate design:

1. Follow the steps talked in tutorial_4. I design a NAND gate using 10/2 MOSEFTs.  First, open the tutorial_3.jelb designed before and duplicate the inv_20_10 cell. Then delete all the wrie Arcs, icon view and remain the PMOS/NMOS and vdd, gnd. Change the MOSFETs size into W=10, L=2. Rename the cell as NAND_wwl_f13.  Copy and paste to put two 10/2 PMOSs and two 10/2 NMOSs in the NAND cell.  Connect these MOSEFETs and export the off-page nodes as the following NAND circuit. Press F5 to check the schematic and if there are some errors, please use cleanup pins everywhere to remove the errors. 

p1.JPG

2. Next, use the artwork to make a icon view.  The circle, pin and polygon are used in to design the icon and the command "Toggle Outline Edit" is also useful to change polygon. About the circle, change the degrees to 180 in the node properties. 

p2.JPG

3. After checking the design, let's simulate the NAND gate. Connect one input to VDD and give a pusle signal to other input node. The following shows the sim_NAND and the simulation result.

3.JPG

1.JPG

4. Now move to lay out the NAND cell. The inv_20_10 contains the MOSFET layout. Only change the PMOS size and reconnect the nodes. Follow the steps shown in tutoral_4. The final layout is shown in following. Make sure the layout pass DRC, ERC and NCC. 

p3.JPG

5. We also need to simulate the NAND layout. Connect B to VDD and give an input pusle to A node. See the AnandB simulation result.

p5.JPG

5.JPG

6. Use the LTpice and IRsim simulate the NAND gate. Open a new cell for simulation and insert the NAND icon. Then write down the spice code. This is for LTspice simulation. For IRSIM,  another new cell should be opened and follow the steps discussed in the lab5 to run the IRSIM. The following images show the two simulation results and cells. As we know, for NAND gate, the output will be zero when both inputs are one. So the simulation is correct.

p4.JPG

8.JPG

7.JPG


NOR gate design:

1. NAND gate can make the NOR gate much easier. Both gates use 4 MOSFETs and the change is the connection. And the size of PMOS is 20/2. Duplicate the NAND cell including the schematic, icon and layout cells. Then change the wire connection in the shematic. The right connection is shown in the following image.

p6.JPG

2. Next, the icon design is much difficult. Three splines need to be used and the icon is shown as seen below.

p7.JPG

3. As the NAND cell design, simulate the NOR gate. Differently, connect B node to gnd and put a pulse signal to A node. Get the following simulation.

p8.JPG

nor1.JPG

4. Then lay out the NOR gate. Based on the NAND layout, we only need to re-connect the MOSFETs. The following shows the right layout circuit and the simulation cell and result.

p9.JPG

p10.JPG

nor1_lay.JPG

5. Next, it's to use LTpice and IRSIM for simulation. NOR gate will get the high output when inputs are both zero. The simulation proves it. 

p12.JPG

nor2.JPG

nor3.JPG

XOR gate design:

1. Fig. 12.18 shows the circuit topology of XOR gate. Two extra inverters are needed in this design.  We can see 12 transistors will used in XOR gate. The size of PMOS is 20/10 and keep the size of NMOS unchanged. After designing NAND and NOR gates, the XOR is much easier. Duplicate the XOR gate again. And get 12 transistor in the new cell: XOR_wwl_f13. The correct circuit is shown in the following.

p13.JPG

2. The icon view nearly looks like NOR gate. we need to change as seen below.

p14.JPG

3. Before we move to the simulation, let's design the layout. Because it has 12 transistors, we need more time. Put every transistors in the standard cell frames that snap together end-to-end. Press F5 to check DRC. 

p15.JPG

4. Connect one input to gnd and give a pulse to other input node. We can see the following simulation result.  I also do the same simulation at layout.

p16.JPG

xor2.JPG

p17.JPG

xor4lay.JPG

5. We also need to do the LTspice and IRSIM simulation. And the last figure is the IRSIM result. For XOR gate, the output will be high when two inputs are different. And the simulation proves it.

p11.JPG

xor1.JPG

xor3.JPG

Full adder design:

1. Now we have NAND, NOR, XOR gates. For the first full adder, use 2 XORs, 2 NANDs and 1 NOR with 3 inverters. Open a new cell: fulladder. And connect the wire Arcs as the figure shown in LAB6. Then make the icon depiced here

p18.JPG

2. For the first full adder, we simulate by LTspice and IRSIM as seen below. I provide 8 different input signals to get the correct outputs.

p19.JPG

FULL1.JPG

p20.JPG

full3.JPG

3. Next, design the second full adder with 3 NAND gates and 2 XOR gates. The schematic is shown in the following.

p21.JPG

4. The layout design is much more complicated. Pass DRC, NCC, ERC checking.

p22.JPG

5. The LTspice and IRSIM is shown as below. The spice code is the same as the first full adder.

p23.JPGp23.JPG

fullii1.JPG

p24.JPG

fullii2.JPG


Backup the work directory for future study

pback.JPG


Return to the listing of my labs

Return to the whole class reports

Return to the EE421L

Return to the CMOSedu.com