P. 1
Cadence Tutorial

Cadence Tutorial

|Views: 39|Likes:
Published by thanhbinh12x

More info:

Published by: thanhbinh12x on Sep 25, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/24/2010

pdf

text

original

The University of Texas at Dallas

Setting up Cadence
1. First log on to the UNIX workstation using your user ID and password 2. Once logged in, open a Console window ,create a directory called ‘ncsu1.3’ from your home directory; >md ncsu1.3 3. Create a subdirectory under ‘ncsu1.3’ called ‘local’;~ncsu1.3>md local 4. Copy file .500 to /local: cp /home/cad/ee6326/ncsu1.3/local/.500 .500 Note: “.” Indicates a UNIX command. 5. Copy file .cdsinit to /local; cp /home/cad/ee6326/ncsu1.3/local/.cdsinit .cdsinit 6. Copy file cds.lib to /local: cp /home/cad/ee6326/ncsu1.3/loc al/cds.lib cds.lib 7. Copy folder cdssetup to /local/: cp –R /home/cad/ee6326/ncsu1.3/local/cdssetup or use file manager to open /home/cad/ee6326/ncsu1.3/local/, click folder cdssetup, then click toolbar “Selected”, chose copy to. A File manager-copy object window will pop up, change the destination folder to ~ncsu1.3/local/, then click ok. 8. Copy .cdsplotinit to local: cp /home/cad/ee6326/ncsu1.3/local/.cdsplotinit .cdsplotinit

2. Starting Cadence 1. type source .The University of Texas at Dallas Schematic Tutorial in Cadence 1. Then use the command icfb& to start Cadence. Go to Tools in CIW and click on Library Manager. Once the setup is complete.446 at your prompt. Written by Vinod Mukundagiri email:vlm014200@utdallas. You will see the line “ Loading NCSU SKILL routines “in your command interpreter window (CIW).edu .

The University of Texas at Dallas 2. Type in your cell view name and click OK. HV FET). Making a Schematic 1. Written by Vinod Mukundagiri email:vlm014200@utdallas. Click on the library you created and go to File and choose Cell View. Then chose “Attach to existing tech library” and then select the option TSMC 0. Enter the name of your library. Then click OK. 3.4u CMOS035 (4M. Go to File in Library Manager -> New -> Library. 2. Creating a Library 1. 2P.edu . 2.

edu Pin .Check & Save Save Zoom in by 2 Written by Vinod Mukundagiri Zoom out by 2 The University of Texas at Dallas Stretch Copy Delete Undo Property Component Wire (narrow) Wire (wide) Wire name email:vlm014200@utdallas.

in the Component Browser select the desired device. click on the Component button to open the Add Instance window.edu . As you open this. Written by Vinod Mukundagiri email:vlm014200@utdallas.The University of Texas at Dallas 3. In the Composer-Schematic Editing Window.

Once placed in the schematic window. 8.The University of Texas at Dallas 4. pmos4. Written by Vinod Mukundagiri email:vlm014200@utdallas. For the design of the inverter. Once you select this. Pressing “ESC” will quit the current operation and you can click on Property to change the parameters of the selected component. 6. gnd. you can modify the parameters of your device. vdd. 7. in the Add Instance window. Further devices can be added by clicking on Browse and choosing the desired components. connect the devices using the Wire (narrow) button in the Schematic window. vdc. 5. vpulse. we will be using the following components: nmos4. You can move the devices by clicking “m” and clicking on the device to move it.edu .

Click on Check and Save button to save the schematic. Written by Vinod Mukundagiri email:vlm014200@utdallas.edu .The University of Texas at Dallas 9. Now you have finished your schematic and ready to run a simulation.

Go to Tools in Composer-Schematic menu and choose Analog Environment to open Analog Environment.3/local/models/spectre/nom/tsmc35N.3/local/models/spectre/nom/tsmc35P.m. Go to Setup option in Analog Environment and choose the option Model Libraries and enter the following lines and click Add: /home/cad/ee6326/ncsul1. 1.n88y /home/cad/ee6326/ncsul1. 2.edu .m. we need to setup Analog Artist first.The University of Texas at Dallas Circuit Simulation using Spectre In order to do circuit simulation in Cadence.n88y Written by Vinod Mukundagiri email: vlm014200@utdallas.

In the Analog Environment Window go to Setup and select Design and the Design window opens. Written by Vinod Mukundagiri email: vlm014200@utdallas. 4. plotting a time-voltage curve. In the Choosing Analyses Window. Then click on options. 3.The University of Texas at Dallas A. Transient Analysis 1. In this case now we are going to do a Transient Analysis i. Click on Analyses in the Analog Environment.edu . Make sure Enabled is ON. select tran and enter the stop time as 1e -7 .e. Once this is done choose the type of analysis you wish to perform. Choose conservative under Accuracy Defaults.

These values can be fixed according to your requirements. go to select Output. The wire will be highlighted to indicate that it is selected. This means that the transient analysis will start from time t=0 and go until t=100ns having a step time of 1ns. to be saved Select on schematic.The University of Texas at Dallas 5. select the drain node. However this is not advisable for a big design since the simulation would consume a lot of time just deselect allpub and choose selected. Then select only those node voltages and branch currents which you require.edu . 7. In the Analog Environment Window go to Outputs and select Save All. and select allpub and click OK. Written by Vinod Mukundagiri email: vlm014200@utdallas. In order to observe the voltage at particular node. This will save the voltage values of all the nets. 6. To plot select signals to output .Click OK in the Transient Options window and finally click OK for the Choosing Analyses window. and then click on the particular wire. In order to plot the current. Under this input the start time as “0” and the step time equal to 1e-9.

10. Once this is done. select Output. Wait for a few seconds and after the simulation is finished. and then select the output node in your schematic.edu . to be plotted. go to Simulation on the Analog Environment Window and select Netlist and Run. NOTE: In case if the designed circuit is huge and if the no. the simulation might take some time. Also sometimes it might appear that Written by Vinod Mukundagiri email: vlm014200@utdallas. Then to Analog Environment Simulation Window. Select on Schematic. a waveform window will automatically appear.The University of Texas at Dallas 8. of outputs to be plotted is large. The voltage node will be highlighted and the current node will be denoted by a circle as in the earlier case above. 9.

Another way of opening the Waveform Window is going to the Results. 11.The University of Texas at Dallas there is no output waveform appears .edu . Written by Vinod Mukundagiri email: vlm014200@utdallas. and select Plot Outputs and choose Transient.This means that there is a problem in your circuit you designed or you have made a fundamental mistake or short circuited some node. So always check twice before running your simulation.

Select what sort of parameter you want to sweep.edu . go to Choose in the Analog Environment Window and in the Choosing Analyses Window. Then click OK.Then click on Select Component and go to the schematic and click the component whose parameter you want to sweep. DC Analysis 1. Then in Sweep Type select Linear and under step size enter a suitable step size or simulation. Written by Vinod Mukundagiri email: vlm014200@utdallas.The University of Texas at Dallas B. DC analysis can be carried out for a number of parameters. select dc. Then under the Sweep Range enter the initial and final values of the sweeping range. In order carry out a DC Analysis. Under the Sweep Variable select Component Parameter .

4. On the Waveform window g to Markers and click on Marker “A”. A waveform will automatically appear showing the DC response of the circuit. Once this is done. Then go to Simulation in Analog Environment window and under Simulation choose Netlist and Run. The o marker can be useful to observe values at a particula r point on the graph. go to the Analog Environment window and follow the same procedure for plotting as you did for Transient Analysis. Written by Vinod Mukundagiri email: vlm014200@utdallas. 3. A plot of the DC characteristic curve of the inverter is shown and the drain current Id is shown.edu . Also in order to combine two graphs just select one of them and place them over the other. We can separate all the graphs by clicking on Switch Axes mode on the Waveform window to the left. 5.The University of Texas at Dallas 2.

edu .The University of Texas at Dallas Written by Vinod Mukundagiri email: vlm014200@utdallas.

Follow the same steps as above and invoke the Analog Environment window. Click OK. Also perform a transient analysis and observe the differential inputs. choose the outputs you want to see and run the simulation. In the Sweep Range. we will make use of a n inverter circuit.edu . Draw it in the schematic window with the specifications given below. under Sweep Variable select Frequency. enter in Start as 1 and in Stop as 1G.The University of Texas at Dallas C. In Choosing Analyses window. 1. 3. Some of the components we will be using will be a sinusoidal source (vsin). choose Logarithmic and select Points per Decade enter 10. AC Analysis In order to conduct an AC Analyses. Then in Sweep Type. 6. 5. 2. 4. Written by Vinod Mukundagiri email: vlm014200@utdallas. In the Composer window go to Instance and choose vsin. Then go to Choose in the Analog Environment window and select AC. The output is as shown in the waveform in the fig below.

go to Help and view Openbook Main Menu.edu .The University of Texas at Dallas In order to learn Cadence much more. try out your own circuits and simulate them and observe their response. Written by Vinod Mukundagiri email: vlm014200@utdallas. Also to learn about Cadence and Analog Environment.

. Draw the differential opamp in the schematic window with the specification given below. Then follow the same steps as above single-ended circuit DC & AC Analysis. In the Composer window go to instance and choose vcvs and vdc. Differential circuit DC & AC Analysis Above DC & AC Analysis is for single-ended circuit. Some of the components we will be using will be two voltage control voltage source (vcvs) and two voltage source (vdc). such as differential opamp. the schematic of analysis will be changed. If the circuit is differential.The University of Texas at Dallas D.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->