0% found this document useful (0 votes)
198 views7 pages

Spectre-Monte Carlo - Tutorial For Cadence 4.4.3 Using Spectres

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 7

austriamicrosystems

SPECTRE-Monte Carlo - Tutorial for Cadence 4.4.3


using SpectreS
1. How to perform Monte Carlo Analysis
The following short tutorial describes the fundamental steps for performing a Monte Carlo Analysis
using the Analog Artist and the SpectreS- simulator.

z Necessary Setup-definitions

In the Analog Artist window define the model paths by choosing:


Setup->Model Path ...

Enter the full model paths for all the devices you want a Monte Carlo analysis to be
performed. Model paths are of the form:

$AMS_DIR/spectreS/<process>/<device>/mc

z Define environment files for combined process-variation/matching simulations or a single


matching simulation:

Two environment-files have been created for the definition of process-dependent random variables:
update.s and matching.s

These files are located in the directory:

$AMS_DIR/spectreS/<process>

and have to be defined in the Analog Artist depending on which analysis you want to perform.

Bring up the Environment Options form with:

Setup->Environment ...

{ For a combined process/matching or a single process variation-simulation enter


$AMS_DIR/spectreS/<process>/update
in the field Update File.

{ For a single matching simulation enter


$AMS_DIR/spectreS/<process>/matching
in the field Update File.

z Choose an analysis type


Choose the analysis type you want to perform.

z Start Monte Carlo tool

Start the Monte Carlo tool via the Analog Artist menu

Tools -> Monte Carlo...

z Define expressions for the Monte Carlo simulation

When using the spectreS simulator, Monte Carlo results are limited to scalar values. Keep this in mind
when defining the expressions.

You can define expressions for the Monte Carlo simulation in three possible ways:

1. Definition in the Monte Carlo window

You can enter your expression(s) in the Outputs section of the Monte Carlo Analysis form. Enter a
name for the expression and the expression itself in the edit fields above the button row. Then hit
the "Add" button to include your expression in the outputs list for the simulation.
2. Definition via the Analog Artist window

You can define your expression also directly in the Analog Artist window. Choose the Analog Artist
menu

Outputs -> Setup...

and define your expressions. After the definition has finished, choose

Outputs -> Retrieve Outputs

from the Monte Carlo window. Now all expressions should be transfered from the Analog Artist
window to the Monte Carlo window.

3. Definition via the Calculator

You can also use the Calculator for the definition of expressions. To do this hit the "Calculator..."
button. The Calculator will show up. Now you can define your expression in the Calculator. When
you are finished, hit the "Get Expression" button in the Monte Carlo window. This will fetch the
expression from the Calculator to the input field in the Outputs section of the Monte Calro form.
Now you should supply a name for the expression and then add it to the saved outputs by hitting
the "Add" button.

Correlation of Model Parameters to Output characteristics:

Hint: Sometimes you may want to analyze the influence of certain model parameters (e.g. the oxid
thickness or the VTH of a transistor) on a specific output characteristic (e.g. differential voltage,
gain,..). For this purpose select the device on your schematic and choose the model parameters in
the Calculator via the

mp - button

You then get a list of model parameters from which you can select the ones you are interested in.
Store them also in the Calculator and transfer them to the Monte Carlo window. After the
simulation you can easily perform correlation plots of model parameters to output variables.

z Setup Monte Carlo Simulation

The following steps should be performed to setup the simulation:


{ Set the desired number of runs for the simulation. For representative results use at least 200 runs.

{ Choose the Analysis Variation. Remember, that if you want to simulate just Mismatch, you have to
set the "mismatch.s" file in the environment of Analog Artist.

{ Check your expressions to be valid with:


Simulation->Check Expressions

{ Create the input files for the simulator with:


Simulation->Create Input Files

z Run Monte Carlo Simulation

Start the simulation with:


Simulation->Run
z Statistical Analysis of Output Data

When the simulation is finished, you can display the results via the Results menu of the Monte Carlo
window.

E.g., to obtain a histogram of output-variables select

Results->Plot->Histogram...

In the upcoming form select which output expressions to plot and hit the "Add" button.

To plot your selection hit "OK". Similarly you can produce scatter plots and correlation tables.
2. Uniform Temperature variations and Monte Carlo Analysis

To vary the temperature uniformly distributed e.g. between x and y degrees (y>x) during a Monte Carlo
analysis proceed as follows:

1. In the Analog Artist window choose:


Setup->Environment
In the upcoming form fill in the field for the "Init File" with $AMS_DIR/spectreS/<process>/init
2. In the Monte Carlo window choose Temperature as Swept Parameter.
3. In the editable field behind enter
UNIFORM((x+y)/2,(y-x)/(y+x),1)
E. g. for a variation from 0 to 100 enter
UNIFORM(50,1.0,1)
The first parameter gives the mean value, the second the variation as a fraction of the mean value, the
third one is the seed for the random generator.
Please note: The Uniform distribution in Cadence does not allow to define values centered around zero.
For this purpose an offset has to be introduced.

3. Known problems

z Corner Analysis and Monte Carlo Analysis in the same Analog Artist session.
It is possible to carry out a corner analysis and a Monte Carlo analysis within the same analog artist
session. However, conflicts can occur between the different model paths. It can happen that a corner
model path is used in the Monte Carlo run. Be sure to control the correctness of the specified model
path for either Corner Analysis or Monte Carlo Analysis before starting the simulation.
z Calculator expressions are saved with full path.
This means that you can not transfer calculator expressions for MC-Analysis via the load-command from
one circuit to another without defining the expressions again or editing the paths in the old expressions.
z Saving and subsequent loading of analog artist session states does not always work for MC-
Analysis.
Absolute paths become relative after reloading so that it is necessary to re-edit them. Some simulator
options are not saved at all (results plotting, analog simulator options.)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy