EE421Lab -Lab4       

                                                                                 

 Authored by Mari Gilligan                                                                                                                       Email:mgill19@unlv.nevada.edu

                                                                                                                                                                            9-21-15

  IV characteristic and layout of Nmos and Pmos devises in ON's C5 process.:

Prelab:

Back-up all your files and lab projects :

in order to creat the bakup,go to Moba-x term and log in to Csimcluster.ee.unlv.edu, when you sign in type  this sentence (tar-cvf backupdate.tar CMOsedu/).

using this commend will creat the tar file with all projects saved.after you creat the tar file type this commond ( gzip backupdate.tar).this command helps us to have the back up dpcuments in smaller size file.

as you can see in the window below:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/backup%20doc.JPG

 

after that you can use Moba-x-term to download the files to your own computerand then put it your desire file that you keep your documentrs.

Prelab4:

in Lab 4 we still will be working with tutoral1 and also going through tutorial2 .

lets start the prelab by going to the mobaxterm and launch virtuoso,when the library manager is open creat new folder and rename that to Tutorial 2,then 

from  library manager ->files->new cell view  ->schematic and  call it NMOS-IV .then press i (instanciate) and use the browser.choose NCSU_ ANALOG_ PARTS

and then choose NMOS3.we need to change the Width to 6um and leave the length to 600nm.place the transistor and fit the screen.you should see the window like this:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad-4.JPG

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad-3.JPG

after you place the transistor,we need to add pins(G, D,S) go to ->creat pins-> inputoutput and the add wires.righ-click on the mouse will placing the pin will rotate it,press Z to zoom and f to( fit ),m to move and s for stretching if you need to do so.add wires with pressing w to the pins .you should have a schematic like this:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad-6.JPG
press check and save.
we need to creat a symbol view for the schematic.go to->create ->cell view->from cell view.when its open delet eveeerything in the cell except the pins.since we cants see the name of the pins select all of them and hit q->"all selected"->and display value as here:
then draw the mosfet symbol and move the pins,if you need to draw the line use create->shape->line.
add the W&L by using create->note->text.
when finish check and save.
you should have sth like this:
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/NMOS%20symbol.JPG

Next go to ->create,file->new->cell view,a cell (schematic)call it  NMOS-IV-3.then instantiate the NMOS-IV cell view make a schematic like you see below:

set the value of V0=VGS and the value of V1=0. (check and save).

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad1%20sim-NMOS_IV_3_schematic.JPG

launch the ADE,go to menue setup->Model libraries and press the buttom on the left side ,that helps you to navigate the components you need,in this case i navigate to /home/ncsu-cdk-1.6.0.beta/models/spectre/standaloneand then select the ami06N.m(nmos model )for this tutorail but notice that for PMOS we would be selecting ami06p.m, then press open and ok.

in the ADE ,select variabls->Edit->and add VGS(value for the left Dc voltage source and an arbitury value of 0.press ok .

Next select Analysis ->choose and set the parameters seen below:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/dc%20voltage.JPG

we should observe that the V1 is the right Dc voltage source and its connected to the Drain.

select output ->to be plotted ->select on schematic-> and click on the D pin to select the current .

Next save the simulation state by ->select session ->state and save in the cell view.

Next go to ->tools->Parameter Analysis and set the parameters as here:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad3.JPG

and finaly select analysis and start in the parameter analysis window.to see the MOSFET IV curves:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad4.JPG

close the ADE window and save the state.

now we are ready to start our Layout for (NMOS-IV-3),go to library manager ->file ->new->cell view->layout and then press fit.

when the window is open press e and set the display stop value to 10 .

next instantiate the NMOS devise that has W=6um and L=600nm.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/nmos%20start%20layout.JPG

 Next instantiate the Ptap cell and then DRC the layout to make sure there isnt any erros( go to verify->DRC then ok)

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad5.JPG
Next add rectangular (press R) on the metal1 layer to connect the source to the p-substrate and also to the drain.then add metal1 to poly cell (m1-poly)and ass a poly rectangle to connect the gate to m1_poly.DRC your layout.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad6.JPG

lets press e and set the display level stop =0 and we see this :
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad7.JPG

set the Display level back to 10 and add D,S,G pins on metal1,make sure you hit the "display pin name "
and I/O type i sinputout to matc the pins,nexxt draw the pins and DRC your layout,if there is no errors then check and save your layout.
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad8,pin%20name%20and%20DRC.JPG


Next extract the layout and verify->extract.
then open the extracted view:
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad9%20extracted%20view.JPG

if you pay close attention ,you will realize that the transistor has 4 terminals not 3,where its assumed the (psubstrate is tied to the GND).
now we will run the LVS for tutorial 2(schematic vs extracted ) : and yes LVS failed .



http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad12.JPG

hit the output and click on the Info and then log file to get this:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad13.JPG
 
the error is from the bulk(p-sub)connected for NMOS,assumed bulk is tied to gnd for an nmos device and vdd for a pmos device.
lets fix that by deleting the metak1 rectangle and pin connected to S to the bilk(ptap) as below,add metal1 over the S&B metal.add pins ,again make the pin the same size as the metal1 rectangle and add the gnd!.
save and DRC the layout.

:http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad15.JPG
now verify ->extracted,and run the extracted once again,notice that the bulk now is connected to gnd!

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad16.JPG
run the LVS and once agin we failed,.it seems like that the LVS wants us to use the 4-terminal transistor in our schematic ,so lets try it:
close all the cell view and go to ->library manager->rename the NMOS-IV_3 to NMOS-IV also rename the SIm NMOs-IV-3 to sim-NMOS-IV.
open the NMOS_IV schematic and change the NMOS symbol  as bellow:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad18.JPG
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad19.JPG
 
then go to ->verify->extract ,then open the extracted view and run the LVS'Make sure to select the correct cell: as i did here;
and yes ,my LVS matches now.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad20.JPG

ok lets try to simulate the extracted layout.
open the schematic vieew of the SIM-NMOS-IV and then launch ADE L.
go to session -> load state->select the cell view and ok.
then o the ADE menu,select the setup->environment and enter extracted before schematic as you can see here:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad21.JPG

as we did earlier select tools->parameter analysis,enter the values seen below and start the simulation.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad22.JPG


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad23.JPG

And finally the same IV curves we got earlier.


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad24.JPG

Lets go through the PMOS Devices now:

create the schematic cell view called PMOS_IV with 4 pins and set the W=12u, L=600nm and  thre it is :

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad25.JPG

check and save your schematic and create a symbol for the schematic,Like this :

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad26.JPG

check and save the symbol ,nect creat the layout(PMOS cell and add ntap)

DRC and save the layout:it should look like this:


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad28.JPG


NExt extract the layout .open the extracted view in the Library manager.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad29.JPG

save and close all the windows.

next create a cell and call it SIM-PMOS-IV and make the following schematic :

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad30.JPG

next change the valu of V1 to VSG and check and save after that.as before we need to simulate our schematic ,so luanch the ADE and go to ->setup->Model libraries ->select the PMOS models for AMi06,go to variables->Edit and add VSG with a value of 0(not VGS).

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad31.JPG

select the outputs and the source termianl of the transistor .and make sure that both plot and save are selected,like here:


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad32.JPG

go to analysis and eneter this:V0=VSD and VDD =V2 and really doesnt do anything.eventhough it might be 0 but we still considere it since we know thats very common to connnect the S/B to VDD!.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad33.JPG

save the state and go to ->parameter analysis and then enter the values below:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad34.JPG

start the simulation and notice that this is a simulation of the schematic.now we should simulate te extraxted view ,go to ADE ->setup->Environment and add extracted before the schematic,like we did earlier. note to save the state.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad37.JPG

and there we have the same IV curves that we got earlier :

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad36.JPG

just to make sure that we are simulating the extracted view ,go to DAE simulation->netlist->Display.and thats what you should see.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/cad38.JPG

End of Prelab

Now we are going to create IV curves:lets start with the 3-pin NMOS.so,create a new schematic and call it sim2-NMOS3.add pins,Here our W=6um ,L=600nm.then add two Vdc for voltage sources and connect one to the Drain and one to the Gate.adjust the dc voltage of the Gate=VGS, the dc voltage of the drain=0.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad1.JPG

check and save and then try to simulate by going to ->ADE-L,->setup->model libraries.we should include the models ,so for that go to->NCSU-cdk-1.6.0.beta->Models->spectre->standalone.then select ami06N.m and ami06P.m.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad2.JPG
after this go to->Variables->edit,and then you need to add VGS=0.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad3.JPG

Next choose the analysis and use dc.select the componenet parameter .as it said in the LAb4,we are sweeping V1 ,dc value ,start =0v ,stop=5v,dont forget to change the sweep type to linear and linear step size =1m.



go to ->outputs->to be plotted on schematic,and choose the current through the NMOs.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad5.JPG

Next go to tools->parametric Analysis and follow what i did in this step:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad6.JPG

now we are ready to do the simulation,so go ahead and hit the green button that you see in the parametric Analysis window,you should get the IV curves like this:


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad7.JPG


save the state and close the window,.copy your NMOS_3 or whatevere you called it to NMOS_4 ,after that open the NMOS_4 and do some changes like:connect B to ground ,but keep the L,W the same size as before.now we are going to plot IV Vs.VGS.so VDs=100mv,VGsfrom0 to2v in 1mv steps.and change your power supplies too.like this:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad8.JPG


Next go to -> ADE_L ->load state and make this following changes:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad9.JPG

you dont need parametric analysis since we have only one value.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad10.JPG

Hit the simulation button(green buttom)
and you should get this:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad11.JPG


reapeat the above process for PMOS,cope NMOS-3 to PMOS-3 and change the VGS to VSG.we need another voltahe source ,so press(i) ,or instantiate ,set the new voltage source to 5v, make sure you are changing the NMOS to PMOS and change w=12um,but leave the L as it was =600nm.


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad12.JPG


Next go to ->ADE-L->load state,current needs to be changes from VGS to VSG.Run the Parametric simulation as we did earlier.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad13.JPG

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad14.JPG
and finally we should have this :


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad16.JPG


save the state,copy the PMOS-3 to new file PMOS-4,change the PMOS-3 to 4pin,connect the Body(B) to VDD.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad17.JPG

Plot IV vs. VSG for this schematic ,VSD=100mv,VSG varyfrom 0 to 2v in 1m ,set the analysis as we did before.


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad20.JPG
and plot the P0 node ,go to outputs->to be plotted on schamatic.


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad19.JPG

and our result:


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad21.JPG


we are going to creat this probe pad:so close all your prevous work after you save them and open a new cell view,in oredr to creat this probe we go to press (i) ,->basic->misc->noConn and add the pin :
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad23.JPG


create cell view from cell view for a symbol,and after that creat the layout ,from provous projects we know that M3=75um and glass=63um.put the glass on the M3 and add pin.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad25.JPG


now go ahead and creat this schematic for a 4pin nmos with probs that we just created .we are using m2-m1,form the NCSU-Techlib-ami06 for Via1 and then we are using Metal2 to go between metal 3 of the pads and metal1 of nmos,.for via2 use m3-m1. creat the symbol and layout  as well.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad26.JPG
connect them like this : and do DRC,


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad27.JPG


do the same thing for PMOS4 as you did for NMOS4


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad28.JPG

connect the pads and run the DRC:

http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad29.JPG

now i need to have schematic for running the I-V curves for each one:
http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad30.JPG


http://cmosedu.com/jbaker/courses/ee421L/f15/students/mgill19/Lab4/lab4%20images/postlab4-images/cad31.JPG
End of Post Lab

Backups are located "Here"

"Reture to EE421 Labs"