Tutorial 2
Tutorial 2
Tutorial 2
Inverter Layout
In this tutorial, a simple CMOS inverter layout will be drawn step by step.
The HP 0.60 um technology design rule will be followed.
1. From the Library Manager, choose File then New and then Cellview
( File --> New --> Cellview )
LSW Window
The Layer Selection Window (LSW) contains all the layers and their color formats
that will be used to layout the circuitry.
nMOSFET Layout
Drawing the N-Diffusion (Active)
We will start drawing the NMOS transistor. From the schematic, we know that this
transistor size is W/L=1.2/0.6u. The width of the transistor will correspond to the width
of the active area. We will select the n-diffusion layer and draw a rectangular active area
to define the transistor.
1. Select nactive layer from the LSW
In our case we need to draw the poly rectangle in the middle of the diffusion region.
In our case we need to draw the poly rectangle in the middle of the diffusion region.
Furthermore, according to design rules, poly must extend at least by 0.6u (2 Lambda)
from the edge of the diffusion. Hence, the rectangle function is used to draw a poly
rectangle that is 0.6u horizontal and 2.4u vertical.
Now you have placed an active contact each into the source and drain diffusion regions
of the transistor.
2. Draw a rectangle extending over the active area by 0.6u (2 lambda) in all
directions.
PFET Layout
Drawing the P-Diffusion (Active)
The next step is to draw the PMOS transistor. The basic steps involved in drawing the
PMOS are the same.
You can use the cursor keys and the zoom function to find yourself a place to build the
transistor. Make sure you leave enough separation between the NMOS and the PMOS.
Note that the PMOS transistor will be surrounded by the N-well region.
These three steps are identical to the ones done for the NMOS.
As with the NMOS transistor, the p-type doping (implantation) window over the active
area must be defined using the n-pelect layer.
2. Draw a rectangle that extends over the active area by 0.6u (2 lambda) in all
directions.
The n-well must extend over the PMOS active area by a large margin, at least 1.8u (6
lambda)
A window will pop-up similar to the copy window. This time we will have to change the
Snap Mode option to Anyangle so that we can move the transistor freely.
The next step will be to connect the gates of both transistors, which will form the input.
To do this, we could use the rectangle command again, but this time we will use a
different command, the path command. Throughout this tutorial, you will see that you
typically have multiple options, commands or procedures available to create the same
features in the layout. Please become familiar with as many of such options as possible.
In the path mode you can draw lines (or paths) with the selected layer. The width of the
drawn line can be adjusted; the default is the minimum width of the selected layer.
3. Start path
To start the path, click on the middle of the PMOS poly extension. You'll see a ghost line
appear. Move this ghost line to the NMOS poly extension.
4. Double click to finish path
A single click will finish a line segment and let you continue drawing, a double click will
finish the path.
In this design, we want that the layer for the input signal is Metal-1. Therefore we have to
make a connection from the poly layer to the Metal-1 layer.
This connection can be done manually by drawing a poly contact layer between Metal-1
and poly, but we will use the path command to automatically add the contacts.
1. Starting from the poly line connecting the gates, start drawing a horizontal poly
path
2. On the Path Options dialog box, click on Change To Layer and switch to Metal1
This will automatically add a contact to the end of the current path. Note that this will
still be a ghost line. You can place the contact at a certain location by clicking once,
thereafter the path will continue using the new layer.
Power Rails
Now that our transistors are placed and connected, we will have to add Power and
Ground rails. Usually a layout consists of a large number of cells, all of which need
power and ground connections. Therefore it is common to design cells such that they will
have one continuous, wide power and ground connection when placed side by side.
In this layout, the horizontal power and ground lines are drawn in Metal-1.
Note the active region is 0.9um (3 lambda) away from the power or ground rail.
P-Substrate Contact
The substrate on which the transistors are built must be properly biased. The way to do
this is to add substrate contacts. The NMOS transistors are build on a p-type substrate, we
will have to create a p-type substrate contact.
1. Draw a P-select square next to the NMOS transistor.
Since the contact will be made to p-substrate, the contact area will have to be p-type.
Make sure to connect the Power Rail and the Ground rail to the source contact of the
PMOS and to that of NMOS, respectively.
N-Substrate Contact
The PMOS transistor was placed within the n-well, this well also has to be biased with
the VDD potential. This will be done with an n-type substrate contact.
There are two ways to layout the substrate contact. One is to design every layer manually.
The other way is to get the substrate contact instance from the library.
You'll have to provide a cell name and library here. It may be the case that you already
know the cell name and cell view, but in this case it is better to Browse in your library to
find the appropriate cell.
Once satisfied, you can click to place the instance. You'll remain in the instance mode
after you have placed the instance, press "ESC" to go back to selection mode again.
The layout must be drawn according to strict design rules. After you have finished your
design, an automatic program will check each and every feature in your design against
these design rules and report violations. This process is called Design Rule Checking
(DRC).
Our design is finished; we must now perform a Design rule Check to see if we have any
errors.
2. Start DRC
The default options for the DRC are adequate for most situations. DRC results and
progress will be displayed in the CIW. You'll have to check the results from the CIW.