0% found this document useful (0 votes)
179 views110 pages

Laboratory 1 - Inverter Design Manual

The document provides an outline for designing an inverter in Cadence software. It covers the basic steps including: 1) Creating a new library and cell category in Cadence and adding the technology; 2) Designing the schematic with PMOS, NMOS, power and ground connections; 3) Creating a symbol from the schematic; 4) Setting up a test bench with instances of the inverter to simulate and verify its operation; 5) Laying out the inverter design using the correct layers for diffusion, polysilicon, contacts and metal connections while following the design rules.

Uploaded by

ece thesis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
179 views110 pages

Laboratory 1 - Inverter Design Manual

The document provides an outline for designing an inverter in Cadence software. It covers the basic steps including: 1) Creating a new library and cell category in Cadence and adding the technology; 2) Designing the schematic with PMOS, NMOS, power and ground connections; 3) Creating a symbol from the schematic; 4) Setting up a test bench with instances of the inverter to simulate and verify its operation; 5) Laying out the inverter design using the correct layers for diffusion, polysilicon, contacts and metal connections while following the design rules.

Uploaded by

ece thesis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 110

Laboratory 1

Inverter Design
Manual
Inverter Design Manual Outline

• Basic (For Beginner in Xstart)


• Part 1: Schematic
• Part 2: Symbol
• Part 3: Test Bench
• Part 4: Layout
• Part 5: Layout Verification
• Part 6: Post Simulation

Inverter Design || MSU-IIT EECE 2


Basic: Run Xstart

Inverter Design || MSU-IIT EECE 3


Basic: Run cdesigner
You can directly run cdesigner if
your library is just on the home
folder of your account. In this
case, it is in the TSMC18UM
folder.

Inverter Design || MSU-IIT EECE 4


Create New Library

Right Click on the Libraries Column. Select


New. Then Name a New Library.

Inverter Design || MSU-IIT EECE 5


Add Technology to the Library

Edit the Technology as shown. Attach the


tsmc18rf technology to the Library.

Inverter Design || MSU-IIT EECE 6


Add New Cell Category

Right Click.

Right Click on the Cell Categories.


Create a new Cell Category.
Inverter Design || MSU-IIT EECE 7
Part 1: Schematic
Add New Cell and View

Right Click.

Select.

Right Click on the Views and add a New


Cellview. Select a view name and editor.
Inverter Design || MSU-IIT EECE 8
Add Instance from Library
Click i

Click I to add instance. Select the


Library.
Inverter Design || MSU-IIT EECE 9
Choose PMOS Cell from tsmc18rf
Library

Inverter Design || MSU-IIT EECE 10


Choose NMOS Cell from tsmc18rf
Library

Inverter Design || MSU-IIT EECE 11


Choose GND Cell from analog Library

Inverter Design || MSU-IIT EECE 12


Choose VDD Cell from analog Library

Inverter Design || MSU-IIT EECE 13


Adjust the sizes of the MOS Devices
Click Q to view the
Property Window

Adjust L, M and
Multiplier according
to design.

Inverter Design || MSU-IIT EECE 14


Adjust the sizes of the MOS Devices
Click Q to view the
Property Window

Adjust L and M
according to design.

Inverter Design || MSU-IIT EECE 15


Complete connections.

Click W to add
wire.

Inverter Design || MSU-IIT EECE 16


Add PINS for input.

Right Click to
Rotate Pin.

Inverter Design || MSU-IIT EECE 17


Add PINS for output.

Right Click to
Rotate Pin.

Inverter Design || MSU-IIT EECE 18


Click Y to create a symbol from the
schematic.

Inverter Design || MSU-IIT EECE 19


Part 2: Create Symbol

Delete unnecessary
shapes.

Inverter Design || MSU-IIT EECE 20


Rename Symbol

Inverter Design || MSU-IIT EECE 21


Draw the shape of the symbol

Select the poly


line.

Inverter Design || MSU-IIT EECE 22


Draw the shape of the symbol

Select the circle.

Inverter Design || MSU-IIT EECE 23


Draw the shape of the symbol

Adjust by
Moving. Click M.

Inverter Design || MSU-IIT EECE 24


Save the Symbol

Click Ctrl + S.

Inverter Design || MSU-IIT EECE 25


Part 3: Test Bench
Create another cell for the Test Bench

Inverter Design || MSU-IIT EECE 26


Add device.

Click i. Then Select the Library


where your inverter design is
located. Select desired cell.

Inverter Design || MSU-IIT EECE 27


Inverter Test Bench
Add instances and construct the circuit. Click Q to edit
properties.

Inverter Design || MSU-IIT EECE 28


Test Bench Simulation

Click Tools on the Menu Bar


and select SAE.

Inverter Design || MSU-IIT EECE 29


Add Model File
SAE window pop up. Click M to add Model File.

To open model file.

Path:
account/TSMC0180UM/models/hspice
Select rf018.l

Inverter Design || MSU-IIT EECE 30


Select Process Corner TT

Inverter Design || MSU-IIT EECE 31


Add Analyses
Click A to add. For Inverter, .dc and and .tran analyses.

Edit parameters for desired


analysis.
Inverter Design || MSU-IIT EECE 32
SAE Set-Up

Add Nets by clicking and


selecting the corresponding
wire on the schematic.

Inverter Design || MSU-IIT EECE 33


Run Simulation
Ctrl + S for shortcut.

Inverter Design || MSU-IIT EECE 34


WaveView Window
You can Click File on the Menu and then open a waveform.
Click Ctrl + O to open.

Select the generated


hspice.tr0

Inverter Design || MSU-IIT EECE 35


Wave Form

Output Waveform

Input Waveform

Click Ctrl+H to open


Output View Window.

Inverter Design || MSU-IIT EECE 36


Measurement Tool
Select the desired measurement tool. For Inverter, select the Rise/Fall Time.

Inverter Design || MSU-IIT EECE 37


Input Vs Output Rise/Fall Time

Drag the Measuring tool to


desired wave.

Inverter Design || MSU-IIT EECE 38


Update Waveform
You can always edit the sizes of the MOS Devices if you are not satisfied with the output. Just
simulate again and update the waveform by clicking the green arrow then Apply all changes.
No need to close the WaveView Window. Else, proceed to the Layout.

Inverter Design || MSU-IIT EECE 39


Part 4: Layout
Create the layout view in the same cell with the schematic and symbol.

Inverter Design || MSU-IIT EECE 40


Layout Tips!
• Be familiar with the shortcut keys and minima Rule.
Practice a lot!
• Select Assist on the SmartDRD option. This will guide you
for the minimum rule.
• Always have 45° (diagonal) cut on metal corners and
when there is a change in metal width or height.
• Schematic: MOS W = Layout: Diffusion H (Height)
• Schematic: MOS L = Layout: Poly W (Width)
• Always Check DRC even if you’re halfway your layout
process so you can check minor errors ahead. Refer to
DRC Verification Part of this manual for the DRC settings.
• On this manual, refer to the property window for the
layer and size.

Inverter Design || MSU-IIT EECE 41


PMOS:
Diffusion Layer

Click R to create a rectangle. Don’t


mind the size yet you can edit it. Refer
to the next slide.

Inverter Design || MSU-IIT EECE 42


Diffusion

As mentioned, Diffusion Height is the MOS W.


Don’t mind the width for the mean time.

Inverter Design || MSU-IIT EECE 43


Polysilicon Layer

As mentioned, Poly Width is the MOS L. Extend the


height width 0.22um compared to the Diff height.

Inverter Design || MSU-IIT EECE 44


Contacts

Add Contact Layers with the minima rule as


shown.

Inverter Design || MSU-IIT EECE 45


Metal 1 Layer

Add Metal 1 Layer with the minima rule as


shown.

Inverter Design || MSU-IIT EECE 46


Metal 1 Layer

Extend Metal 1 Layer covering all the contacts.

Inverter Design || MSU-IIT EECE 47


Multiples

In case of having multiples, select the


poly, contacts and metal 1 then copy
(Click C ) and align in the same
diffusion. Extend the diffusion by
adjusting the width or by stretching
(Click S).

Inverter Design || MSU-IIT EECE 48


Add Label

You can add text to label.

Inverter Design || MSU-IIT EECE 49


Add Poly Dummy

You can add Poly Dummy Layers.

Inverter Design || MSU-IIT EECE 50


Polysilicon Gate

On the polysilicon gate layer, extend or add a poly


rectangle. Then chop (Click Ctrl+C) to form 45° diagonal
when shifting from wider layer to smaller width.

Inverter Design || MSU-IIT EECE 51


Polysilicon

Chopped Polysilicon. Delete the


unnecessary part.

Inverter Design || MSU-IIT EECE 52


Metal 1 – Poly Contact

Add the Metal 1-Poly Contacts to the Gate.


Make sure the Poly is attached or overlapped.

Inverter Design || MSU-IIT EECE 53


NMOS:
Diffusion Layer

Follow the same procedure with the


PMOS.

Inverter Design || MSU-IIT EECE 54


NMOS
Label

Label the Drain and Source


connection.

Inverter Design || MSU-IIT EECE 55


NMOS

Inverter Design || MSU-IIT EECE 56


NMOS Gate Connection

Connect the gates by adding metal 1


layer.

Inverter Design || MSU-IIT EECE 57


PMOS Gate Connection

Connect the gates by adding metal 1


layer.

Inverter Design || MSU-IIT EECE 58


Gates Connection

Connect the PMOS and NMOS gates by


adding metal 1-metal 2 contact then
connect with metal 2 layer.

Inverter Design || MSU-IIT EECE 59


Routing

Route metals to connect the PMOS and


NMOS Device based on the schematic
connections.

Inverter Design || MSU-IIT EECE 60


PMOS: P Implant Layer

Add P implant Layer to the PMOS.


Observe Minima Rule.

Inverter Design || MSU-IIT EECE 61


NMOS: N Implant Layer

Add N implant Layer to the NMOS.


Observe Minima Rule.

Inverter Design || MSU-IIT EECE 62


Inverter Design

Inverter Design || MSU-IIT EECE 63


Guard Ring

You can create guard ring manually or


using via. Just adjust the Column and
Row number.

Inverter Design || MSU-IIT EECE 64


Guard Ring

Inverter Design || MSU-IIT EECE 65


VDD to Source Connection

The guard ring of the PMOS serves as


the VDD. Connect the Source to the
Guard ring.

Inverter Design || MSU-IIT EECE 66


PMOS with Guard Ring

Inverter Design || MSU-IIT EECE 67


PMOS: NWELL Layer

Inverter Design || MSU-IIT EECE 68


NMOS with Guard Ring

Inverter Design || MSU-IIT EECE 69


NMOS Source to GND

The guard ring of the NMOS serves as


the GND. Connect the Source to the
Guard ring.

Inverter Design || MSU-IIT EECE 70


Guard Ring

Inverter Design || MSU-IIT EECE 71


Add Metal Route for the Input and
Output Pins

Inverter Design || MSU-IIT EECE 72


Add PINS

Inverter Design || MSU-IIT EECE 73


Vin Pin

Make sure metal pin is the same with


the layer. Name is the same with the
schematic.

Inverter Design || MSU-IIT EECE 74


Vout Pin

Make sure metal pin is the same with


the layer. Name is the same with the
schematic.

Inverter Design || MSU-IIT EECE 75


Vdd Pin

Make sure metal pin is the same with


the layer. Name is the same with the
schematic.

Inverter Design || MSU-IIT EECE 76


Gnd Pin

Make sure metal pin is the same with


the layer. Name is the same with the
schematic.

Inverter Design || MSU-IIT EECE 77


Inverter Design

Inverter Design || MSU-IIT EECE 78


Part 5: Verification
DRC Verification
This is to verify that the design has complied with the minima rule.

Inverter Design || MSU-IIT EECE 79


DRC Setup

Add Runset file.


Path: /home/documents/TSMC_018um/hercules/drc
Then Click OK.

Inverter Design || MSU-IIT EECE 80


DRC Result

You must only this kind of error on the DRC Errors


Tab. This is just fine for this Laboratory.

Inverter Design || MSU-IIT EECE 81


LVS Verification
This is to verify that the layout design matches the schematic design.

Inverter Design || MSU-IIT EECE 82


LVS Setup P.1

Add Runset file.


Path: /home/documents/TSMC_018um/hercules/lvs

Inverter Design || MSU-IIT EECE 83


LVS Setup P.2

Inverter Design || MSU-IIT EECE 84


LVS Setup P.3

Select layer map.


Path: account/TSMC018UM/tsmc18rf/
Then RUN LVS.

Inverter Design || MSU-IIT EECE 85


LVS Result
This is verifies that the layout design matches the schematic design.
If not, debug the errors.

Inverter Design || MSU-IIT EECE 86


LPE Verification
This is to verify whether the parasitic value of the layout is tolerable that it does not affect
the output of the device.

Inverter Design || MSU-IIT EECE 87


LPE Setup P.1

Select Runset file.


Path: /home/documents/TSMC_018um/hercules/starrc

Inverter Design || MSU-IIT EECE 88


LPE Setup P.2

Select MilkyWay XTR View. Go to the lvs folder from the


LVS verification.
Path: /home/account/TSMC018UM/Inverter/hercules_lvs

Inverter Design || MSU-IIT EECE 89


LPE Setup P.3

Select Mapping file.


Path: /home/documents/TSMC_018um/hercules/starrc

Inverter Design || MSU-IIT EECE 90


LPE Setup P.4

Select GRD file.


Path: /home/documents/TSMC_018um/hercules/starrc

Inverter Design || MSU-IIT EECE 91


LPE Setup P.5

Select Output Runset Path.


Path: /home/account/TSMC018UM/EE270/Lab1_Inverter/
Create new Folder Output.

Inverter Design || MSU-IIT EECE 92


LPE Setup P.6

On the Output Folder, create filename, output.spf


then save and Run LPE.

Inverter Design || MSU-IIT EECE 93


LPE Result
Refer to the Custom Designer Console of This is verifies that the layout design has no errors
in terms of the parasitic extraction.

Inverter Design || MSU-IIT EECE 94


LPE Result
LPE output can be viewed on gedit. Go back to xtart terminal window, type gedit & then
Click Enter. It will open a new window of gedit. Click Open to open the file: output.spf.

1 2

Inverter Design || MSU-IIT EECE 95


HSPICE Generated Output

Inverter Design || MSU-IIT EECE 96


Part 6: Post Simulation

Open on gedit the pre-simulation hspice code on the


simulation folder.
Path: /home/account/simulation/EE270/Inverter_TestBench/
Schematic/HSPICE/nominal/netlist
Inverter Design || MSU-IIT EECE 97
Post Simulation P.1

Open on gedit the post-simulation hspice code on the output


folder.
Path:
/home/account/TSMC018UM/EE270/Lab1_Inverter/output

Inverter Design || MSU-IIT EECE 98


Post Simulation P.2

Copy all the output.spf code to a new document or you can


simply save as a new document where the file is saved as
an .sp file. Take note in which folder you saved the file.

Inverter Design || MSU-IIT EECE 99


Post Simulation P.3

From the input.sp, copy the highlighted


code to the post.sp file just below the
comments line or the line before the
the Subckt.

Inverter Design || MSU-IIT EECE 100


Post Simulation P.4

From the input.sp, copy the highlighted code to the post.sp file at the bottom part or
after the Subckt code.
Inverter Design || MSU-IIT EECE 101
Post Simulation P.5

In the post.sp file, rename the Inverter pins in sequenced with the pinning of the
Subckt.
Inverter Design || MSU-IIT EECE 102
Post Simulation P.6

Click Replace. Rename the <space>P<space>


with <space>PCH<space> and
<space>N<space> with <space>NCH<space>

Inverter Design || MSU-IIT EECE 103


Post Simulation P.7
Go back to terminal, go to the folder
where the post.sp file is located.
Run Hspice.
Type hspice filename.sp then Enter.

If there are no
errors, job is
concluded.
Type wv & then a
waveview window
pops up.

Inverter Design || MSU-IIT EECE 104


Post Simulation: Waveform

Open the File


filename.tr0. Click Ctrl+O
to open waveform files
window.

Inverter Design || MSU-IIT EECE 105


Post Simulation: Waveform

Click the vin and vout


to open waveforms.

Inverter Design || MSU-IIT EECE 106


Pre-Simulation: Waveform

Open the pre-sim file. Path:


/home/account/simulation/EE270/
Inverter_TestBench/schematic/HSPICE/nominal/results
Select the hspice.tr0 file.

Inverter Design || MSU-IIT EECE 107


Measurement Tool

Inverter Design || MSU-IIT EECE 108


Pre-Sim vs Post-Sim

It is good if your post-simulation is equal to or better than the pre-simulation result. If not,
you can check your layout to improve your output.
Inverter Design || MSU-IIT EECE 109
Done!

Congratulations!

Inverter Design || MSU-IIT EECE 110

You might also like