Professional Documents
Culture Documents
Electrical-Electronics Engineering
1. USING PC LABORATORY....................................................................................................................................3
1.1. Introduction ..............................................................................................................................................3
1.2. Running Cadence ......................................................................................................................................3
1.3. Setting Up Cadence Environment.............................................................................................................3
1.4. How to Log Out? .......................................................................................................................................3
2. SCHEMATIC ENTRY OF A CMOS INVERTER .......................................................................................................4
2.1. Create a New Library ................................................................................................................................4
2.2. Schematics of a CMOS Inverter ................................................................................................................5
2.3 Symbol of a CMOS Inverter .......................................................................................................................8
3. TRANSIENT SIMULATION OF SCHEMATIC ........................................................................................................9
4. BASICS OF LAYOUT DRAWING ........................................................................................................................13
4.1. What is LAYOUT? ....................................................................................................................................13
4.2. CMOS Process and Layout Drawing Step by Step...................................................................................13
4.2.1. Step 1 –Active Regions and Wells ............................................................................................13
4.2.2. Step 2 - Polysilicon ...................................................................................................................14
4.2.3. Step 3 – N+ and P+ Diffusion ...................................................................................................14
4.2.4. Step 4 - Contacts ......................................................................................................................14
4.2.5. Step 5 – Metal Deposition .......................................................................................................15
4.2.6. Final View.................................................................................................................................15
5. LAYOUT DRAWING USING CADENCE ..............................................................................................................16
5.1. Design Rules............................................................................................................................................16
5.1.1. Layers .......................................................................................................................................16
5.1.2. Design Rules Overview ............................................................................................................16
5.2. Layout of the Inverter .............................................................................................................................17
6. LAYOUT VERSUS SCHEMATIC CHECK (LVS) .....................................................................................................23
7. SIMULATION OF THE INVERTER LAYOUT........................................................................................................25
8. FULL DESIGN AND LAYOUT FLOW ..................................................................................................................28
1.1. Introduction
There are 25 personal computers in the laboratory with Centos OS configuration. Cadence IC tools require the
use of Linux environment. You will therefore have to get familiar with using Linux OS. There are many
resources in the library and online. Remember to shut down Cadence when not in use.
2. Click on <Tools> and then <Library Manager> to start the library manager (below on the left):
5. Click Browse in the small selection screen to choose “PRIMLIB” library under XFABLibs, “ne3” (basic N-
channel MOSFET that is tuned for 3.3 VDD supply) cell, and “symbol” view, as depicted below (left).
1. Every cell should have a symbol view in order to be used in other circuits. Click on <Create> in the schematic
editor; then cursor over to <Cellview> then choose <From Cellview>. Make sure the selection for “From
View Name” is “schematic” and “To View Name” is symbol (it normally is), and the Tool/Data Type is
“schematicSymbol”. Click on OK. This brings up a screen with the pins on the top, bottom, left and right.
You can move them where you like. If they are fine, you can click OK.
2. This opens the symbol editor, as depicted below. One can draw his/her own symbol by using tools in the top
menu, but it is not necessary. One can also select <Import> under <Create> pull-down menu to pick an
existing symbol in one of the libraries, modify it, and/or rename its pins. If you like the symbol, just press the
check and save floppy disk symbol with the green check mark. At this point, the symbol is created, so just
click on <file> and then click on <close>. The schematic and symbol views for the inverter are completed, so
close schematics window as well by switching to the Virtuoso Schematic Editor, and clicking on <file> and
then <close>. You can also close the schematic view.
2. Click on "vdc" and right click to change properties. Write "3.3" to "DC Voltage".
3. Set up the vpulse for a 1ns pulse train. You may have to scroll up and down to get to all the DC parameters.
The first set of things are for AC analysis. Voltage 1 is 0 V, Voltage 2 is 3.3 V, Period is 2n s, Rise and Fall
times are 50p s, and Pulse width is 1n s (note how the magnitude of numbers are listed with the number with
no spacing, while the units are listed after a space character).
4. Set capacitor value to 5 fF as inverter load.
5. It is in general a good idea to label important wires (e.g. input and output nodes) to help later in the simulation
and debug. Take a few moments, and give these nets a name. Use the <Create> <Wirename> option, or on
this window symbol menu click on the wire with abc above it. For example, you can label the inverter input
node “IN”, and output node “OUT”. The two signal names are typed as a list (with a space character in
between) in “Add Wire Name” tool. Then place the cursor over a wire and click. The name should switch to
the next one on the list.
7. To get to the design, click on the tab <inv_tb>. Click <ADE XL> from the top window menu, then <Create>
and <Test>. Two windows will pop up. Select “inv_tb” in “Choosing Design” window; click OK.
8. In the next window, setup the simulation by clicking on “Choose Analysis” button (circled below.) This pops
up a window with the simulation options. Make sure the transient analysis (tran) is selected, and set it up for
“10n” of simulation time (through Stop Time entry). All EE414 simulations should be performed in
conservative mode. Click OK. The simulation shows up in Test Editor as below. Note any given simulation
on the list can be enabled or disabled with the check mark.
9. Now, select the outputs. Click on top menu option <Outputs>, <To Be Plotted>, <Select On Design>. This
will select the schematic editor. There, you can click on the wires for the signals desired. If you want currents,
click on the terminals, and a circle is drawn on the schematic indicating what has been selected. For example,
you can select inverter input and output node voltages, and supply current at VO + terminal. This is the upper
terminal of the DC voltage supply. It is a good idea to monitor the current through the main voltage supply
for a design with power dissipation constraint. When you go back to the simulation setup screen, you should
see:
12. When you are done, you can shut down the graph window, and the ADE XL for now. Click on <File> then
<Close> to shutdown the tool.
Let's start the CMOS process flow. We have a p-type substrate with single well technology, which means that
NMOS transistors are implemented on p-type substrate, and PMOS transistors are implemented on NWELLs.
Nwells are the n-type doped regions as seen in the figure above. Normally, front sides of the wafers are initially
covered with very thick SiO2 layer (or Si3N4 layer) except the regions where some active elements, like the
transistors, will be implemented. A mask is used to shape these openings, which are called as Active Regions.
Another mask is used to shape the Nwell region. So, two layers are drawn in the layout.
Next step is to grow and shape polysilicon layers, which will form the gate of the transistor. For this purpose, we
need to draw one mask only, which is colored as green.
In this step, n+ and p+ regions will be doped. Doping is done on entire wafer surface. Since SiO2 and PolySilicon
do not pass dopands (or impurities) to the substrate, these regions are not doped. First, a mask is used to determine
the regions to be doped with p+ impurities. After p+ doping, the rest of the surface is doped by n+ dopands. So,
only one mask is used.
One important point should be stated here. Nwell regions should be biased to high potential and p-substrate should
be biased to lowest potential in order to minimize the leakage current on the diode formed by Nwell and p-
substrate. For this purpose, a structure like the figure above is used, where the Nwell is biased with the same
potential to the p+ region on the left. Note that, contact to the Nwell should be n+ in order to decrease schottky
effect. See the p+ doping region mask on the right.
As the next step, the entire wafer surface is again covered by a thick oxide layer in order to prevent the shorts
We are almost done with the process. The metal layer is grown and shaped in this step. Note that, the metals where
a contact exists touches to the substrate.
This is it. The process is completed and our layout is ready. As you see, layout is somehow similar to the top view
of a chip.
Remember the definition of the layout stated at the beginning of the tutorial. It is combination of masks used
during the process of the chip. So as the designer, you give the shapes of the layers that you want, and the process
engineer produces the corresponding chip for you. From the designer point of view, you do not deal with the
thickness of the layers, but you have to develop the x-y dimensions of the shape of the layers. So you are in a 2-
D world.
XFAB 180 nm, 6 Metal 1 Poly NWELL process will be used (XFAB XH018). Each technology has its own layout
design rules, and they should be satisfied for successful production. Design Rule Check (DRC) tools are used to
determine whether the design rules are satisfied or not.
The following parts summarize the descriptions of the layers first, and then give the most important design rules.
5.1.1. Layers
There are a number of layers to be used in the layout view. Some of these layers, and abbreviated names are
summarized below:
Minimum
LAYER MIN. WIDTH (µM) SPACING (µM) Spacing
NWELL 0.86 0.6
DIFF 0.22 0.28 Minimum
POLY1 0.18 0.25 Width
CONT 0.22 0.25
MET1 0.23 0.23
Notch
MET2 0.28 0.28
VIA1 0.26 0.26
1 . Open the library manager window (It may be minimized, but should still be open). Click on your library
EE414, then on the inv. This should show schematic and symbol. If you just double click on schematic, it
will open a lower level schematic editor. For most work, you should use the XL version of the editor. To
get this editor, right click on the schematic, and then use <Open With>. In the Application area, click on
the red down arrow, and select schematics XL. You can click “Always use this application for this type of
file”, but it doesn't seem to remember it all the time. Click OK. The schematic editor will appear.
2 . Click <Launch>, and <Layout XL>. The following will pop up:
Make sure “Create New” is selected, and click OK. Make sure the cell is inv in the next pop-up window,
and click OK. If any “Upgrade Licence” window pops up, select 'Yes' and continue. After a moment, you
should have a screen that contains the schematic on one side, and the layout on the other side. On the very
So you may choose VIA1_C via from “Via Definition” section for input and output terminals. You can
also change width and length of the via and number of contacts used at the via.
As you may consider, we have not assigned names for the power or signal lines (remember ports in the
schematic) yet. In this step we will create pins for "vdd!, gnd!, A, Q" (the "!" signs are necessary). Click
Create->Pin. The following window pops up:
2. Give a random run name like “inv_LVS” and write “./AssuraLVS” as the Run Directory. Then choose
Technology as “XH018_1143” and the Rule Set as “default” the remaining parts are going to be filled
automatically. Then click “OK”.
3. After a short while, you will have a message box stating that the LVS check is completed. Figure below
shows the window that is showing that schematic and Layout matched. Note: There is an recent bug about
“unbound pin” errors in the layout. If you get mismatches in pins due to this error, most likely you did not
do the workaround correctly in the pin labeling step for input A and output Q pins. Remember to use
CreateLabel to label these pins in the layout.
5. If you have LVS error you can see the LVS report by clicking on <View> <LVS Error Report (Current
Cell)>.
1. Click on <QRC> <Run Assura-Quantus QRC>. A new window will be opened like shown on the figure
below. Choose Technology and Rule Set as "XH018_1143" and "default", respectively. Change the Output
to "Extracted View" and uncheck "Enable CellView Check".
2. Switch to the Extraction tab and select "Schematic Names" as the Name Space and write "gnd!" to the Ref
Node. Then click "OK".
9. Select the analyses type as "tran" and enter "10n " for the simulation time.
10. Click <Output> <To be Plotted> <Select on Schematic>.
11. Click on the input and output wires of the inverter in the schematic, and click “OK” in the previous window
where the signals to be plotted have been annotated.
12. Simulate.