Tutorial Cadence v1 2021
Tutorial Cadence v1 2021
João Vaz
INTRODUCTION TO CADENCE
ANALOG DESIGN FLOW
(for AMS CMOS PDK)
version 1.2021
Wireless Circuits - Lx
Instituto de Telecomunicações
schematic
virtuoso
layout
DRC
assura,
LVS QRC,
calibre
extraction
Cadence Analog Flow
Introduction João Vaz
IST student can log to the respective server using its Fenix authentication.
3) Start command for C35 CMOS AMS technology is “ams_cds -tech c35b4 &”.
4) The main cadence interface window appears, Command Interpreter Window (CIW).
CIW
2) Start command for cadence with C35 CMOS AMS technology is “ams_cds &”.
Please note that before finishing a work session it is very important to close
cadence. Otherwise, one or more licenses will be locked. Also, depending on how
the user made login to the server, some files inside the libraries can became
locked and additional procedures must be done to unlock them.
Cadence Analog Flow
Introduction João Vaz
• Library manager
Library manager is where libraries, cells and views can be created, open and
deleted. It can be started in the CIW “Tools” menu.
AMS PDK opens it automatically.
By default, PRIMLIB library, which has low frequency AMS PDK components,
appears. Also cadence analogLib, which has ideal generic components, is included.
If “show categories” is selected, a group organization of the cells is shown.
Cadence Analog Flow
Introduction João Vaz
new added
libraries
↓
pads libs
rf components
spiral inductors
Cadence Analog Flow
Introduction João Vaz
• Library creation
When starting a new project, a new library should be created. This is done in
Library Manager using menu “File/New/Library”. This library should be
associated with the technology version in use.
fill
library
name
schematic window
fill cell
type
Cadence Analog Flow
Schematic João Vaz
At the same time cadence gives the option to configure the element properties
before placing by opening element properties window.
Anyway the same properties can always be changed after placement. For that:
1) Select the component
2) Open menu “Edit/Properties/Object”, the properties window appears.
Components from Cadence or AMS libraries are read-only but can be used in
user libraries. User own cells with symbol views can be reused by the same user.
Cadence Analog Flow
Simulation João Vaz
• Configuring a simulation
step 1
For a certain schematic cell, the simulation is started with the
menu “Launch/ADE GXL. Then, cadence asks if the user wants
to create or open an adexl view (step1). This adexl view stores
all simulation configuration details for the cell.
After pressing ok, a new window appears (step2), press ok. step 2
A new ADE window appears (step3)
Expand “Tests” by clicking “+” in ADE window. Add a test
and chose the corresponding schematic to simulate (step4).
step 3 step 4
amp_LF
symbol
Another cell, the testbench, has the schematic with the necessary off-chip
components to perform the AMP_LF simulation. These components are usually
sources, grounds and passives, from analogLib, and the symbol of the circuit under
test.
input voltage
parameters for
AC and TRANS
analysis
amp_LF testbench
Following slides will show how to configure typical low frequency circuits
simulations, like DC, AC and transient.
Cadence Analog Flow
Simulation João Vaz
schematic run
simulations simulation
button
ade tab
results tab
Global variables are valid for all tests, each test has local design variables.
For each test outputs from all simulations can be configured.
Cadence Analog Flow
Simulation João Vaz
• AC simulation
The AC small-signal simulation configuration form is shown for a simple
frequency sweep (step1). Other sweep options are possible.
step 1
step 2
After running the simulation, on
ADE results tab, click with the
mouse right button (RMB) over
one of the results line. A menu
opens and chose “direct
Plot\Main form”, which opens
step2 form.
Graphical result for output voltage in dB20 which, because input source AC
magnitude is 1, is numerical equal to gain voltage in decibel.
Cadence Analog Flow
Simulation João Vaz
• TRAN simulation
The time domain simulation (tran) configuration form is shown for a simple case
with stop time (step1). Other options are possible.
step 1 step 2
• DC simulation
The DC simulation configuration form is shown for a simple case of obtaining
the Quiescent Point (step1). Other options are possible.
step 1
After running the simulation, on
ADE results tab, click with the RMB
over one of the results line. A menu
opens and chose “Annotate\DC node
voltages” or “Annotate\DC operating
point”.
Voltage and current DC values will
be plotted in the schematic.
Annotation result for “dc operating point” and “dc node voltages”.
Please note that annotation results can also be seen directly in the schematic
by opening menu with right-mouse button.
Cadence Analog Flow
Simulation João Vaz
Cadence is able to simulate circuits taking into account dispersion effects. For
that it uses device models included in the PDK that are obtained from wafers
with limit acceptable tolerance parameters (corners).
Although theses cases apply to MOS devices, the passive devices measured
in the wafers have also models for the same situations.
The Monte Carlo (MC) simulation makes random variation of the model,
instead of limit cases. It can also mix random corner with random variations
around them.
Cadence Analog Flow
Simulation João Vaz
• Corners simulation
The AC simulation will be used for corners analysis simulation. Corners
analysis assumes that each type of components (for example MOS) suffer from
equal fabrication dispersion by using non typical models.
Start creating a corners file by using CIW menu “hitkit/simulation utilities/corner
analysis”. A form opens (step1).
Chose the components types to consider
step 1
Cadence Analog Flow
Simulation João Vaz
On ADE, expand “Corners” by clicking “+”. Add a corner. The corners setup
window appears. Import the created .sdb file, and the window will look like step2
where one corner has all variations. Select the corner and expand it (step3) which
is better for results interpretation.
step 3
step 2
Press ”ok” and run the AC simulation. Please note that by default typical corner is
not selected on ADE corners list.
Corner analysis can be very time consuming, depending on corners number and
simulation complexity.
Cadence Analog Flow
Simulation João Vaz
Graphical result for gain voltage in decibel. Typical curve in red with circle
symbols.
Cadence Analog Flow
Simulation João Vaz
To perform MC simulation
change all sections from
*tm to *mc (step3).
After finishing MC
step 2
simulations change back
again *mc to *tm.
step 1 step 3
Cadence Analog Flow
Simulation João Vaz
amp_RF
schematic
amp_RF testbench
• S-parameters simulation
The s-parameter simulation configuration form is shown for a simple frequency
sweep (step1).
step 1
Ports must be selected by order
x-axis variable
Graphical result for output power and power gain in terms of Psav.
Cadence Analog Flow
Simulation João Vaz
• Building a layout
Layout main characteristics
• Each schematic component must match a layout component in terms of type and
dimensions.
• Pins names in schematic and layout must match (the names are case sensitive).
Placing all components and editing its dimensions, making all connections and
adding the pins by hand. In this case Layout L tool can be used.
• Layout creation
step2
Create a layout cellview
in the same amp_RF cell
step1
For using layout XL, on layout L menu “Launch”, chose “Layout XL”. This way
layout L window transforms into layout XL window.
To place the components and pins, on menu “Connectivity/Generate/All from
source…” and step1 form appears. Unselect PR boundary.
step 1 step 2
Cadence Analog Flow
Layout João Vaz
Following steps
Move, rotate and mirror the
components to simplify the
connections to be made.
Place the necessary pads and
move each pin into each one.
Start making the metallic
connections (routing) using
metal layers and vias. Important
Connect the guard-ring to the It is mandatory during layout design to perform
adequate VDD/GND pads. frequently design rules check (DRC) to see if any
geometrical error is made.
Several aspects
Layers have a name and a purpose. Drawing shapes using layers with drawing
purpose (drw) can be used for defining, for example, metals, poly, diffusion,
wells, etc. These drw layers are also called tooling layers because they define
the process materials fabrication steps. Other purposes layers are usually used
by the CAD to identity special regions, pins, components, etc.
The PDK library has already the layouts for all the components. The designer
task is essential to route the components pins between then and with the pads
that are the accesses to the outside.
This task is accomplished by placing metal layers and vias. Guard-rings must
also be connected to PG pads.
Sometimes it is necessary to place wells (p or n type) around components and
connect these wells to PG. These can be made using guard-rings or simple
multiple contacts.
Any geometric shape can be placed using menu “Create/Shape”. Path can also
be used to make a more efficient routing using menu “Create/Wiring”.
Vias and all types of contacts can be placed using menu “Create/Vias”.
Many menus have shortcut info close to some of the items.
Cadence Analog Flow
Layout João Vaz
• LNA layout
A final layout is
shown on the right
figure.
Although there are
many good design
practices for
obtaining a good
layout, each designer
has its own style.
This layout is a
simple one, only for
demonstration
purposes.
Cadence Analog Flow
Layout João Vaz
• Cpolyrf details
All components have accesses in M1.
Because passive RF components have
individual GR with M1, the route to inner
connections should take that into
account. The foundry allows to use only 3
sides GR to simplify the routing.
The route to top M1 plate is made with M4, and a stack of vias 1,2 and 3 is used to
connect top plate.
• Rpolyrf details
• Nmosrf details
Because this nmos has grounded source, the body and source are connected to
GND using M1.
The drain side is routed from M4 with stacked vias 1,2,3 to connect the M1 drain
terminal region.
The gate side is routed from M4 with stacked vias 1,2,3 and poly1 contact, to
connect the poly1 gate terminal region.
Cadence Analog Flow
DRC João Vaz
step 2
Selecting each error line with the mouse, and using the form arrows, a zoom of the
error location is shown.
Cadence Analog Flow
LVS João Vaz
step 2
Cadence Analog Flow
LVS João Vaz
An LVS successful result will present a form like this, which means that layout
represents the same circuit as schematic, i.e., they match.
An unsuccessful LVS will present an errors list that the designer should solve.
The typical errors are mismatches in the electrical connections or in the
components parameters values.
Cadence Analog Flow
QRC João Vaz
Choose “Extraction”
tab and form opens
(step2). Select C only,
and “Ref Node”
with GND.
step 1 step 2
This slide example was done for C extraction. For RC extraction fill “View” with
av_extracted_RC” and choose “RC” extraction type.
Cadence Analog Flow
QRC João Vaz
step 1 step 2
Please note that QRC cannot run without a successful previous LVS.
If an RC extraction was also made, the cell now has both extracted views (step2).
Extracted views are a kind of layout with the extracted netlist included. For the C
case it includes parasitic capacitors, for the RC case it includes parasitic
capacitors and resistances.
Cadence Analog Flow
Simulation João Vaz