Академический Документы
Профессиональный Документы
Культура Документы
Project 2 Cadence Setup and Creation of an Inverter Due Date 11:30pm on Friday, January 24th 2014
Introduction
This project will rst walk you through the setup for use of the
you will create the schematic, symbol, and layout of an inverter. Much of the information in this lab manual was taken from Dr. Moon's Design Framework Tutorial. For more information you can refer to his page at:
http://web.engr.oregonstate.edu/~moon/ece423/cadence/
Setup
Following these steps will help you setup the Cadence Design Framework. 1. To run Cadence, you just need to have
/usr/local/apps/bin
for the ENGR machines). To check this go to your home directory and look at the
.cshrc
PATH
le.
2. To setup Cadence you must create a directory inside of you ECE471 folder named cadence in which you can save your Cadence projects. Change your current directory to terminal:
cadence.
directory to your Cadence project directory, run the Cadence setup script by typing the following command at the
/nfs/guille/u1/c/cdsmgr/cdsmgr/process/CDK1.4/tsmc025/setup This sets your directory to work with the TSMC 0.25m process and copies
3. Next you will need to edit your
.cshrc le.
This le is found in you home directory, and it is a hidden le (it starts
with a '.'). If you're using a graphical le browser, simply specify that hidden les should be displayed. If you use a terminal window, you can nd the le by typing
ls -all
le, open it in a text editor and append the following commands to the end of the le:
4. You must also replace one of the cadence initialization les. The script above creates some basic init les. Unfortunately, the layout tool will not work unless you replace the Simply save the cdsinit le from the lab webpage in your cadence directory as
.cdsinit le that was placed in your cadence directory. .cdsinit. Remember, this is ~cdsmgr/
to
a hidden le, so you won't be able to see it unless you specify that you want to view hidden les. 5. Now you'll need to change a location in one le. Open cds.lib and change any line with
/nfs/guille/u1/c/cdsmgr/ This can be done with a simple sed if you prefer: sed "s/~cdsmgr/\/nfs\/guille\/u1\/c\/cdsmgr\/cdsmgr/g" cds.lib
6. Next you must add the local cadence icfb shortcut le. Download this le from Lab webpage and copy it into your newly created cadence folder. Then change the permissions to ensure its executable (either
or
browse to the le in your le browser, right click, go to the permissions tab and select the executable box). 7. You can now start DFII by typing
./icfb
Creating a layout
This section will walk you through the process of creating a design and layout. In this case, we will make an inverter.
F ile N ew Library
Type a new name, such as ECE471. Under the heading Technology File, choose Compile a new techle. Then from the drop-down menu choose TSMC 0.24u CMOS025/DEEP (5M, HV FET) . Click OK.
F ile N ew Cellview
Choose library ECE471, cell name inverter, view name schematic, and Tool Composer- Schematic. Click OK.
Placing components
For this inverter, you will need a nmos transistor, a pmos transistor, and power and ground nodes.
Add Instance
The Add Instance and Component Browser windows will open. Make
NCSU_Analog_Parts.
Use the Component Browser window ('i' is hot key for Component browser instantiate) and single click then select
nmos4
and place it. Place the component. Do the same for a pmos (P_Transistors and
NCSU_Analog_Parts,
vdd
and
gnd
from
Supply_Nets
names for the power and ground nodes). Create input and output pins by pressing 'p'. Give each pin an appropriate name and select the proper direction (input or output). To size the transistors properly rst highlight the NMOS transistor and press 'q', then change the width to 480nm. Next change the PMOS width to 960nm. Be sure to include the 'nm' postx. Use wires to connect the parts accordingly (Be sure that the PMOS bulk is connected to is connected to Go to:
gnd).
to save the design and check for any errors. If there are errors, they will show
up in the icfb log window. Some other hot keys are 'f' for re-centering screen and 'w' for placing wires.
T ools Analog Environment Simulation N etlist Create F inal. To save the F ile Save As and type in the full path to where you want it saved. (For example, mine would be save location: ~/ECE471/Lab2/netlist.spi)
Creating a symbol
Creating a symbol for your circuit is useful for integration into a larger design. If you are creating a circuit that uses inverters, it is handy to view the inverters in a schematic as the inverter symbol, rather than just seeing it at transistor level.
View Name
Design Create Cell view F rom Cell view. To View Name eld is symbol. Press OK.
From
We want the our symbol to simply look like this inverter symbol seen in gure 1. To do this, go to
Add Shape
and add the necessary shapes (use polygon to create a triangle). Your nal symbol should match gure 2.
To start a new inverter layout, go back to the library manager window, highlight your ECE471 library and go to:
In the
View Name
Tool
To add new parts, once again press 'i'. Choose Browse, and highlight:
layout.
the PMOS (changing the width to 960nm), and place it above the NMOS, and then press Shift+f keys. Your screen should look similar to gure 3.
Change the width to 480nm, then go ahead and place the NMOS on the grid. Repeat this process with
Now we want to connect the drains of the transistors. To do this, go to the LSW window and highlight the box, press 'r', and draw
metal1
metal1
drw
Next we will place the ntap and ptap. For the ntap press 'i', then select browse and highlight:
N CSU _techLib_tsmc03d
ntap layout
and place it as shown in gure 6, then add the ptap in a similar manner.
gnd
and PMOS to
vdd
as shown in gure 7.
We want for our in pin to connect on have to use vias. Press 'i', and highlight:
metal1, and our out pin to connect on metal3. To do this we will N CSU _T echLib_tsmc03d M 1 P oly layout, and place the
For the output, compound an M1-M2 connector with a M2-M3
connector as shown in gure 8. We will also take both M1 and M3 and extend the input and output.
Next we want to place the pins. Go to: input. Change Pin type to
for the out pin, making all the necessary changes. Make sure the pins are placed on the appropriate spots (on the appropriate metal layers).
metal1.
Click on
Create P in, change the terminal name to in and set the I/O type to Display Pin and change layer to metal1-dg. Repeat this process
vdd
and
gnd.
These will be added using pins, but this time, the I/O type will be set to
Input/Output. Set the metal layer properly and place the pins on the correct locations.
V erif y DRC
and press OK. If your design has any errors they will show up in your icfb Log window. If
you have errors take a look at them and see if you can x them. To do parasitic extraction go to: Manager, open this up.
V erif y Extract, in that window select: Set Switches Extract P arasitics Caps
and press OK. ICFB should show you no errors. There will be a new cell called extracted in your Cadence Library
This will
What to turn in
Turn in a PDF to TEACH by Friday, January
25th
Screenshots of your completed, error free schematic and HSPICE schematic netlist. A screenshot of your completed symbol. Screenshots of your completed, DRC clean layout, and your extracted HSPICE netlist. An explanation of any problems you may have had. Answer to the following question:
Why is it important to simulate your circuit both after schematic and post-layout? (after parasitic extraction)