Getting all the design variables in SKILL

M

mm77

Guest
Hi all!
Is there a way to get all the design variables in a schematic with
SKILL?

My purpose is to set all of them to zero.
This because I have a testbench, with many design variables which
controls some voltage sources, which I use for several Ocean
simulations.
For some simulations, some variables are not used at all, so they
should be put to zero (or better they should have the default value of
the CDF parameter they set).

An alternative would be to use different testbenches for different
simulations, but I would like to reuse testbenches as much as
possible.

For example, suppose I have two simulations scripts that use both
"tran" analysis, one having some design variables that control the
pulse characteristics of few vpulse voltage sources, and the other
simulation script needing only to control another voltage source.

Using this approach, you end up with may design variables which need
to be set in each simulation script.
If I could get all the design variables somehow, I could first set
them to zero or CDF default, and them just put in my script calls to
desVar() for the few variables I need there.

What's the best approach in this case?

Thanks in advance for any suggestion. I am especially interested in
knowing how other people use simulation scripts....

Kind regards,
Marco
 
On Oct 16, 6:52 am, mm77 <marcoball...@gmail.com> wrote:
Hi all!
Is there a way to get all the design variables in a schematic with
SKILL?

My purpose is to set all of them to zero.
This because I have a testbench, with many design variables which
controls some voltage sources, which I use for several Ocean
simulations.
For some simulations, some variables are not used at all, so they
should be put to zero (or better they should have the default value of
the CDF parameter they set).

An alternative would be to use different testbenches for different
simulations, but I would like to reuse testbenches as much as
possible.

For example, suppose I have two simulations scripts that use both
"tran" analysis, one having some design variables that control the
pulse characteristics of few vpulse voltage sources, and the other
simulation script needing only to control another voltage source.

Using this approach, you end up with may design variables which need
to be set in each simulation script.
If I could get all the design variables somehow, I could first set
them to zero or CDF default, and them just put in my script calls to
desVar() for the few variables I need there.

What's the best approach in this case?

Thanks in advance for any suggestion. I am especially interested in
knowing how other people use simulation scripts....

Kind regards,
Marco
You can probably use artGetCellViewDesignVarList which is documented
in Virtuoso Analog Design Environment SKILL Language Reference. It
takes a cell view object as an argument and returns a list of design
variable and value pairs.

Depending on what you are trying to do, if the schematic window is
current you can use:

artGetCellViewDesignVarList(geGetWindowCellView())

or if you know the name of the library/cell/view:

artGetCellViewDesignVarList(dbOpenCellViewByType("myLib" "myCell"
"myView"))

If I wanted to write an OCEAN script to do some analysis on a design,
I would probably start by setting up the design in ADE (which allows
you to pull design variables from the schematic) and then save the
OCEAN script for the session using, for example, the Session->Save
Script... menu item. Once I had the initial script I would edit it to
do what I needed.
 

Welcome to EDABoard.com

Sponsor

Back
Top