Printing all variable names

G

Guenther Sohler

Guest
I want rmemeber, that there was some function in cadence to print all
the variables defined.
I need that to improve my scritps and put more let's :)
i will call this before my script and after it and then finding the
difference in output.

how can i print all variables defined ?
 
On Nov 19, 3:56 pm, Guenther Sohler <guenther.soh...@wipro.com> wrote:
I want rmemeber, that there was some function in cadence to print all
the variables defined.
I need that to improve my scritps and put more let's :)
i will call this before my script and after it and then finding the
difference in output.

how can i print all variables defined ?
here is some code that I attached to a symbol to have the design
variables printed on my schematics. Maybe it can be of some use.

(procedure (SABdesignVar)
(let ((str "Design Variables") var)
(foreach var (asiGetDesignVarList
asiGetCurrentSession())
(setq str (sprintf nil "%s\n%L" str var))
)
str
)
)

--
Svenn
 
On Mon, 19 Nov 2007 08:37:39 -0800 (PST), Svenn Are Bjerkem
<svenn.bjerkem@googlemail.com> wrote:

On Nov 19, 3:56 pm, Guenther Sohler <guenther.soh...@wipro.com> wrote:
I want rmemeber, that there was some function in cadence to print all
the variables defined.
I need that to improve my scritps and put more let's :)
i will call this before my script and after it and then finding the
difference in output.

how can i print all variables defined ?

here is some code that I attached to a symbol to have the design
variables printed on my schematics. Maybe it can be of some use.

(procedure (SABdesignVar)
(let ((str "Design Variables") var)
(foreach var (asiGetDesignVarList
asiGetCurrentSession())
(setq str (sprintf nil "%s\n%L" str var))
)
str
)
)
I think he means SKILL variables, not design variables.

You can use the listVariables() function - but this is going to give you all
variables (yours, Cadence's or whoever's which match a particular regular
expression) - so it may not be that useful.

Try using SKILL Lint - this is good at telling you global variables that you've
used in SKILL code.

Regards,

Andrew.
--
Andrew Beckett
Senior Solution Architect
Cadence Design Systems, UK.
 
Thank you for the immediate reply, andrew

is it possible to use listVariables without having skilldev ?


rds
 
On Tue, 20 Nov 2007 07:45:25 +0100, Guenther Sohler <guenther.sohler@wipro.com>
wrote:

Thank you for the immediate reply, andrew

is it possible to use listVariables without having skilldev ?


rds
No. printVariables() (which is similar but prints the variable values too) also
checks out a skillDev license.

SKILL Lint (which is the better way) also needs a skillDev license.

Regards,

Andrew.
--
Andrew Beckett
Senior Solution Architect
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top