Lab 4 - ECE 421L 

Authored by, Vincent Ibanez

Email: ibanez.troy.e@gmail.com

Today's date 09/28/2014

  


PreLab:   

To begin Tutorial 2 first start Cadence’s Virtuoso in the CMOSedu directory. Next copy Tutorial_1 into a new library called Tutorial_2 by right clicking on Tutorial_1 (below). Make sure update instances is selected.

     

1.PNG

    

In this library, create a schematic cell called NMOS_IV_3 (The 3 indicates we’ll use a 3 terminal transistor).

Using a 3-terminal NMOS the body (p-well or p-substrate) is connected to gnd!

   

Press i (or use the menu Create -> Instance) and select, in the Component Browser Window, NCSU_Analog_Parts, N_Transistors, nmos.

Remember that often Windows are opened that are behind other windows so you have to use the Task bar to bring them to the front.

Set the transistors Width to 6u and leave its length at 600 nm.

Place the transistor and fit the screen (press f). 

 

2.PNG

 

 

Next add Pins with the direction inputOutput and wires as seen below.

Remember that right+clicking the mouse when instantiating the Pin rotates it.

Z (zoom out by 2) and f (fit) can be used while instantiating the pin.

w can be used to wire the Pin to the MOSFET.

Check and Save the schematic when finished.

   

 3.PNG

 

Next create a symbol view for this schematic.

Create -> Cell View -> From Cell View

Ensure that the "From view name" drop down is selected as symbol.

   

4.PNG

 

Virtuoso will ask where the pins should be located (it doesn’t matter). Hit OK.

Delete everything in the cell except the pins.

   

5.PNG

 

Notice we can’t see the pin names.

Select all of the pins and then edit their properties (q).

Select “all selected” and Display “value” as seen below.

   

 6.PNG

 

Draw a MOSFET symbol and move the pins (rotate as necessary) to get (something similar to) the following.

Remember to draw a line use Create -> Shape -> Line.

Adding the width and length text using Create -> Note -> Text

When finished “Check and Save”

 

7.PNG

 

Next, create, File -> New -> Cell View, a cell (schematic) called sim_NMOS_IV_3.

 

8.PNG

 

Instantiate the NMOS_IV_Cell View just created and the DC voltage sources seen below (and wire things together).

 

9.PNG

 

We are almost ready to simulate.

Set the value of V0 to VGS and the value of V1 to 0 as seen below.

Check and Save the schematic.

   

10.PNG

 

Launch the ADE.

Go to the menu Setup -> Model Libraries press the button circled below and navigate to /$HOME /ncsu-cdk-1.6.0.beta/models/spectre/standalone

Select ami06N.m (NMOS model) then Press Open and OK.

Note that for general purpose simulation we would also select ami06P.m for the PMOS models.

 

11.PNG

 

Next, in the ADE window, select Variables -> Edit and add VGS (value for the left DC voltage source in our schematic) and an arbitrary value of 0.

Press OK and notice how the Design Variable shows up in the ADE.

 

12.PNG

 

Next select Analyses -> Choose and set the parameters seen below.

Note that V1 is the right DC voltage source in the schematic connected to the Drain.

 

13.PNG

 

Select Output -> To Be Plotted -> Select On Schematic and click on the D Pin to select the current.

Ensure that both plotted and saved are selected, circled below.

 

14.PNG

 

Now let’s save the simulation state.

Select Session -> Save State and save the in the Cell View (you can use the Library Manager to verify it has been saved).

 

15.PNG

 

Next choose Tools -> Parametric Analysis and set the parameters seen below.

 

16.PNG

 

Finally, select Analysis and Start, in the Parametric Analysis window, to see the MOSFET IV curves below.

 

17.PNG

    

Quit the ADE and Save the State (okay to overwrite existing state).

Close the schematic of sim_NMOS_IV_3 (close all Cell Views).

    

We are now ready to lay out this cell and simulate it.

Create a layout view for NMOS_IV_3 (not sim_NMOS_IV_3)

    

18.PNG

   

We’ll also see that our Editor Options, E, and Display Options, e, (also below) have reverted back to the original states.

Change the values back to those seen below.

   

19.PNG

 

After pressing e we get the following.

To ensure that the options are remembered Save To File (the CDS, Cadence Design System, Enviornment, .cdsenv) as seen below (saved in $HOME, aka, ~/).

Note that to see the Save To button you may need to re-size the Display Options dialog window.

 

20.PNG

 

When finished hit OK. 

Next instantiate an nmos device that is 6 um wide and 600 nm long.

 

21.PNG

 

Next instantiate a ptap cell (metal1 connection to p+) in the p-substrate so you get something that looks like the following.

DRC the layout (Verify -> DRC then OK).

 

22.PNG

 

Next add rectangles on the metal1 layer to connect the source to the p-substrate and to the drain.

Also add a metal1-connection-to-poly cell (m1_poly) and a poly rectangle to connect the gate to m1_poly.

DRC your layout.

 

23.PNG

 

Pressing e and then setting the display level stop to 0 we can see the rectangles and cells.

 

24.PNG

 

Set the display stop level back to 10.

Add D, G, and S Pins on metal1 as seen below.

Ensure “Display Pin Name” is selected and I/O type is inputOutput to match the pins in the schematic.

Draw the pins so they overlap the metal1.

DRC the layout to ensure no errors (fix errors if you find them).

Save the cell view.

 

25.PNG

 

Next Extract the layout (Verify -> Extract).

Using the Library Manager open the extracted cell view (NMOS_IV_3).

 

26.PNG

 

Notice that the symbol displayed here has 4 terminals, not the 3-terminal transistor we used in the schematic (where it’s assumed the p-substrate is tied to gnd!)

Next run an LVS (Verify -> LVS).

 

27.PNG

 

After hitting Run you will be notified that the job failed. Click OK.

In the Artist LVS window click on Info and then Log File to get, after scrolling down, the following.

 

28.PNG

 

The error is related to the bulk (p-substrate) connection for the NMOS. Again, as mentioned above when the 3 terminal MOSFET symbol is used it’s assumed

that the bulk is tied to gnd! for an NMOS device and vdd! for a PMOS device.

 

Let’s modify the layout as seen below.

Delete the metal1 rectangle and pin connecting the S to the bulk (ptap) as seen below.

 

29.PNG

 

Next, add metal rectangles on metal1 over the S and B metal.

 

30.PNG

 

Next add Pins, again make the Pin the same size as the metal1 rectangles (note that that making the Pins the same size is not a requirement).

Save your layout and DRC it.

 

31.PNG

 

Once again run the Extractor and open the extracted view using the Library Manager.

Notice that it’s basically the same view except that now the bulk of the NMOS devices is connected to gnd!

 

32.PNG

 

Again we get a failed LVS run and the error “*Error*   Could not determine the node name for terminal 'progn(bn)'.” It looks like LVS wants us to use

a 4-terminal transistor in our schematics! Let’s try this.

Close all Cell views.

Open the Library Manager and rename NMOS_IV_3 to NMOS_IV.

Also, rename sim_NMOS_IV_3 to sim_NMOS_IV

Now open the schematic view of NMOS_IV and change the NMOS symbol as seen below.

Move the symbol and then add the wire and label as seen below.

It may also be good to simulate this schematic (using the sim_NMOS_IV cell), following the steps seen above, to ensure that we still get the NMOS’s IV curves.

 

34.PNG

 

Open the extracted view and perform an LVS.

Ensure that you select the correct cell, see circled text below.

 

35.PNG

 

And now!

 

36.PNG

 

Okay, let’s simulate the extracted layout.

Open the schematic view of sim_NMOS_IV and then Launch the ADE L.

    

Go to Session -> Load State then select Cellview and OK.

Then, on the ADE menu, select Setup -> Environment and enter extracted before schematic as seen below (so the extracted view is used before the schematic

view when running the sim).

 

An important note: if you save the state with extracted view in front of schematic view you may get frustrated when you change your schematic and the

simulation doesn’t change!

 

37.PNG

 

Next, again as we did earlier, select Tools -> Parametric Analysis, enter the values seen below and then select the menu items Analysis -> Start to simulate.

 

38.PNG

 

Just to ensure that we are simulating the extracted view and not the schematic view go to the ADE and select Simulation -> Netlist -> Display (see below).

 

39.PNG

 

Let’s repeat these steps for the PMOS device but in a much more concise manner.

 

Create a schematic Cell View called PMOS_IV with 4 pins as seen below. Note the W and L of the PMOS device.

 

40.PNG

 

Check and Save the schematic.

 

Next create a symbol for the schematic.

 

41.PNG

 

Check and Save the symbol.

 

Next create the layout (pmos cell and ntap).

DRC and Save the layout.

 

42.PNG

 

Next Extract the layout.

Open the extracted view in the Library Manager.

 

43.PNG

 

Save and close all open Views.

 

Next create a cell called sim_PMOS_IV and draft the following schematic.

Note the value of /V1 is VSG (not VGS as we used in the NMOS sim).

When finished Check and Save.

 

44.PNG

 

We are now ready to simulate this design.

Launch the ADE then go to Setup -> Model Libraries and select the PMOS models for AMI06 (setting the models is important!).

Variables -> Edit and Add VSG with a value of 0 (not VGS)

 

45.PNG

 

Next select Outputs and the source terminal of the transistor.

Ensure, as seen below, that both Plot and Save are selected.

 

46.PNG

 

Select Analyses and enter the following.

Note that /V0 is VSD.

Also note that the vdd! Source, that is /V2, really doesn’t do anything. It could be zero but we include it since it’s common to connect the S/B to vdd!

 

47.PNG

 

Save the state in the cellview.

Then go to Parametric Analysis and enter the values seen below (again, it’s VSG not VGS).

 

48.PNG

 

Starting the analysis results in the following. Note that this is the simulation of the schematic.

 

49.PNG

 

Now let’s simulate the extracted layout.

In the ADE go to Setup -> Environment and add extracted before schematic.

 

 

And we get the same thing as with the schematic.

 

50.PNG

 

Just to verify that we are simulating the extracted view go to ADE Simulation -> Netlist -> Display.

 

51.PNG

 

An important note: if you save the state with extracted view in front of schematic view you may get frustrated when you change your schematic and the

simulation doesn’t change! The simulator simulates your old extracted view instead of your modified schematic view.

 

Save the state and close everything. This concludes Tutorial 2.


Main Lab:
52.PNG
 
  • Here is the ID v. VDS simulation of the previous schematic  
53.PNG
54.PNG

55.PNG
56.PNG
   
57.PNG
58.PNG
     
59.PNG
60.PNG
61.PNG
nmoslvs.PNG
62.PNG
63.PNG
pmoslvs.PNG

 


Finally, backup your design lab4 directory and other files for future study.



Return to labs