Lab 6 - ECE 421L 

Ian Yanga

yangai@unlv.nevada.edu

October 11, 2013

 

Lab

- Draft schematic of a 2 input NAND gate using 10/2 MOSFETS (both NMOS and PMOS)

    - create layout and icon views

- repeat for a 2 input NOR gate using 20/2 PMOS devices and 10/2 NMOS devices

- repeat for a 2 input XOR gate (note: gate will need two inverters)

- Draft a full adder using all 3 gates and 3 inverters

    - create icon

    - simulate the operation using LTspice IRSIM

- Show how a full adder can be implemented using 3 NAND gates and 2 XOR gates
    - show layout
 
 Make sure to go over Tutorial 4 and Electric video 11 here
 
NAND gate:
Schematic:
1) duplicate the cell inv_20_10 cell and name it NAND_gate
2) change MOSFET sizes to width=10 and length=2
3) delete all the wires leaving just the MOSFETS in the drawing area
4) copy and paste each MOSFET resulting into 2 total NMOS/PMOS devices
5) copy and paste the power source
6) place a label and export it naming it AnandB, also rename In->A and Out->B
7) place the components in the schematic and connect them with wires as seen below
../lab6/NAND_schematic.jpg
 
Icon View:
1) go to the Explorer tab, look for NAND_gate{ic} and open up the cell
2) using the circle and polygon component, draw the icon for a NAND_gate, use the Tool Outline Edit
3) with the polygon tool, draw a square with one side missing (right side)
4) with the circle tool, press ctrl+i and change the degrees to 180, connect it to the missing side of the polygon
../lab6/NAND_icon_view.jpg

Simulation:
1) First do a DRC (F5)
2) create a new cell schematic and name it NAND_gate_sim
3) change A input name to "in", connect a power source to B, and change the output name to "out"
4) place spice code, schematic should look as follows:
../lab6/NAND_sim.jpg
5) simulate and get the following results
../lab6/NAND_waveform.jpg
 
Layout:
1) duplicate the inv_20_10 layout and name it NAND_gate
2) delete the arcs, pins and exports until you just have the following
../lab6/NAND_layout_1.jpg
3) move the pAct and nAct out of the way and delete the corresponding side
../lab6/NAND_layout_2.jpg
4) change the width and y-size of the PMOS node to 10
../lab6/NAND_layout_3.jpg
5) copy and paste the pACT node twice, and the PMOS node, NMOS node, nACT node once
../lab6/NAND_layout_4.jpg
6) add the arcs and move them together to compact it
7) add metal1 connections
../lab6/NAND_layout_5.jpg
8) add metal1-poly1 contacts
../lab6/NAND_layout_6.jpg
9) export the inputs A,B,AnandB as seen as follows
../lab6/NAND_layout_7.jpg

Gate Inputs:
1) create a new schematic and name it "NAND_gate_inputs"
2) copy over the icon view and create the A, B, out pins
3) write the spice code as seen below
NAND_gate_input_schematic.jpg
4) simulation results seen below
NAND_gate_input_waveform.jpg
 
NOR gate
1) repeat all the steps above but for a NOR gate

Schematic:
1) copy the NAND gate cell group
2) change the PMOS width to 2 and length to 20
3) create the following schematic
NOR_schematic.jpg
 
Icon
NOR_icon.jpg
 
Simulation
NOR_schematic.jpg
NOR_waveform.jpg
 
Layout
NOR_layout.jpg

 
Gate Inputs:
NOR_sim.jpg
NOR_sim_results.jpg
 
XOR gate:
Schematic
XOR_schematic.jpg
Icon View
XOR_icon.jpg

Simulation
XOR_sim.jpg


Return to EE 421L Labs