Lab 5 - ECE 421L 

Authored by Matt Mumm, mummm2@unlv.nevada.edu

Oct 5, 2013

  

Lab description

We will be making and testing inverters using the NMOS and PMOS from the previous lab.  We can get a good idea of how much of a time delay there is. 

Inverter:

  1. Create a new cell schematic.
  2. Place down PMOS and NMOS device. 
  3. Set the PMOS width/length to 20/2.  Set NMOS to 10/2.
  4. Connect the two together vertically. 
  5. Tie a power source to the unconnected end of PMOS.
  6. Tie ground to the unconnected end of NMOS. 
  7. Connect the gates together and add an input to that connection. 
  8. Finally tie an output to where the MOSFET devices meet.

The inverter should look something like this.

invert_2010_schem.JPG

**Also notice that I created an icon for my inverter and labeled it appropriately.**

  

  1. Create a new layout cell with the same name as your schematic so everything can be grouped together. 
  2. Place down a PMOS with pActs for the source and drain.  Change the size to 20/2.
  3. Place down a NMOS with nActs for the source and drain.  Change the size to 10/2.
  4. Connect the poly, or gate, together from each device for an input connection.  Connect this to a Poly1-M1 con. Export this with the same name you used in your schematic for the input. 
  5. Place a nWell above your PMOS device;  this will be used as your power source.  Connect this to your PMOS via M1.
  6. Place a pWell below your NMOS device; this will be used as your ground.  Connect this to your NMOS via M1. 
  7. Finally, connect the open connections from NMOS and PMOS together via M1 and create an output. Label this the same as your schematic output. 
You're layout should look something like this.

invert_2010_layout.JPG

 

**Now is a good time to check for errors. DRC, Well Check, Layout vs Schematic **

 

 

Parallel Inverter

 

  1. Right click on your cell group and click "duplicate cells in this group"
  2. Instead of placing 5 different transistors in parallel on your schematic, we are simply going to multiply them.  Select your MOSFET device, go to Tools -> Spice (Simulation) -> Add multiplier.  (See picture below the schematic)
  3. Click on the M that appeared and change the value to 5.  We have just made it so that there 5 MOSFET devices in parallel 
  4. Do the same for your other MOSFET.
  5. Be sure to change the name that appears on your icon so we can tell the difference between the first inverter that was made and this one.

invert_10050_schem.JPG

 
Multiplier.jpg
 
  1. Click in your new duplicated layout.  
  2. If you look at the picture below, you will notice that we cannot simply just add in some code to represent a multiplier.  You can however copy/paste the poly and its right connection to add another MOSFET device.  
  3. After we have 5 of each MOSFET, we need to reconnect the power, ground input and output. 
  4. All of the polies are connected together via poly1 for the input.
  5. vdd has been extended and made larger so that it can properly supply power to the MOSFETs. 
  6. ground as also been made larger to connect all the MOSFETs.  
  7. Finally all the outputs are connected together via M1.
invert_10050_layout.JPG
 
**Make sure you check for errors**

We are now going to check for how long the delay is when connecting to different capacities for each of the inverters.  
  1. Create a new schematic cell for simulation purposes. 
  2. Place each of your icons into the cell by dragging and dropping.
  3. Connect the inputs together.  
  4. Place a capacitor after each inverter and tie ground to the other side of the capacitors. 
  5. Finally place an exported output between the output of the inverter and input of  the capacitor. (Plotting is based your off page nodes which are exported.)
  6. We will be setting the capacitor values to 100fF, 1pF and 10pF.
  7. Write spice code for the vin as a pulse signal from 0 to 5 in 1ps.  Transient analysis with maximum run time of about 60ns. 
  8. The second simulation is with no spice code and using Tools -> Simulation (Built-in) -> ALS. 
    1. Selecting your vin and hitting v or g will change the input signal to high or low, respectively, at wherever the thicker black dotted line is. 
    2. Look at the simulation results for cap=1pF.  It was dropped from high to low at about 80ns and then the inverters responded about 10ns later. 
    3. The difference can be seen in the upper right that is labeled delta. (10.02ns)
    4. Take note that the delay DOES NOT change with different capacitor loads. 
  9. The third set of simulations is done through IRSIM. 
    1. You will need to add in IRSIM into electric. Please go to here.  Step 12
    2. Go to Tool -> Simulation (Built-in) -> IRSIM: Simulate Current Cell
    3. IRSIM works much like ASL in respect to hitting v and g.
    4. The time delay DOES change with capacitor loads.
simulation.JPG
 
Vout1 or out_20_10 is the regular inverter.
Vout2 or out_100_50 is the parallel inverter.
 
Cap=100fF
sim_100f.JPG
ALS_100f.JPG 

Cap=1pF
sim_1p.JPG
ALS_1p.JPG
 
Cap=10pF
sim_10p.JPG
ALS_10p.JPG
 
  Notice that with larger capacities, the longer the delay is.  And that the parallel inverter is slightly quicker than that of the none.  This will affect the overall clock time in a larger circuit.
 
 
 
Be sure to backup your files.
backup.JPG

  

My Jelib File

 

More information can be found at cmosedu.com