How to delete a (design) variable

Guest
Hi,

I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?

Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?

Thanks for your answers.
Kind regards,
Marco
 
I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?
I'm not aware of any, but... I can't see a situation where it could be necessary...

To reset everything you can re-issue the design(...) command.

Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?
yourVar = 'unbound


Cheers,
Stéphane
 
On Sep 9, 5:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch>
wrote:
I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?

I'm not aware of any, but...  I can't see a situation where it could be necessary...

To reset everything you can re-issue the design(...) command.
This seems not to work for me :(
If I do:
desVar("a" 1)
desVar("b" 2)
desVar()

I get:
(("a" "1")
("b" "1")
)

If now I call design():
design("myLib" "myCell" "schematic")
desVar()

design variables are still there. in fact I get again:
(("a" "1")
("b" "1")
)


The reason I'd like to clear all design variables is that I launch
several scripts for several different cells, which may use the same
name for some design variables.
I just want to be sure that the value of a desVar meant for a circuit
is not used for another one, in case for the new circuit the new value
was not specified (because I forgot to set the new value).
Clearing the design variable would easily solve this problem, because
I would get a message that the design variable was not defined for the
second circuit, thus pointing out the bug in the script (i.e. the
missing new value).


Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?

yourVar = 'unbound
Thanks!

Marco
 
marcoballins@gmail.com wrote, on 09/09/08 17:03:
On Sep 9, 5:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch
wrote:
I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?
I'm not aware of any, but... I can't see a situation where it could be necessary...

To reset everything you can re-issue the design(...) command.

This seems not to work for me :(
If I do:
desVar("a" 1)
desVar("b" 2)
desVar()

I get:
(("a" "1")
("b" "1")
)

If now I call design():
design("myLib" "myCell" "schematic")
desVar()

design variables are still there. in fact I get again:
(("a" "1")
("b" "1")
)


The reason I'd like to clear all design variables is that I launch
several scripts for several different cells, which may use the same
name for some design variables.
I just want to be sure that the value of a desVar meant for a circuit
is not used for another one, in case for the new circuit the new value
was not specified (because I forgot to set the new value).
Clearing the design variable would easily solve this problem, because
I would get a message that the design variable was not defined for the
second circuit, thus pointing out the bug in the script (i.e. the
missing new value).


Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?
yourVar = 'unbound

Thanks!

Marco
Use:

delete('desVar)

to delete the lot. Or:

delete('desVar "a")

to delete a specific variable.

Assigning a variable to 'unbound was for normal SKILL variables, not for OCEAN
design variables.

Regards,

Andrew.
 
On Sep 10, 2:14 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
marcoball...@gmail.com wrote, on 09/09/08 17:03:



On Sep 9, 5:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch
wrote:
I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?
I'm not aware of any, but...  I can't see a situation where it could be necessary...

To reset everything you can re-issue the design(...) command.

This seems not to work for me :(
If I do:
desVar("a" 1)
desVar("b" 2)
desVar()

I get:
(("a" "1")
    ("b" "1")
)

If now I call design():
design("myLib" "myCell" "schematic")
desVar()

 design variables are still there. in fact I get again:
(("a" "1")
    ("b" "1")
)

The reason I'd like to clear all design variables is that I launch
several scripts for several different cells, which may use the same
name for some design variables.
I just want to be sure that the value of a desVar meant for a circuit
is not used for another one, in case for the new circuit the new value
was not specified (because I forgot to set the new value).
Clearing the design variable would easily solve this problem, because
I would get a message that the design variable was not defined for the
second circuit, thus pointing out the bug in the script (i.e. the
missing new value).

Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?
yourVar = 'unbound

Thanks!

Marco

Use:

delete('desVar)

to delete the lot. Or:

delete('desVar "a")

to delete a specific variable.
Thanks for the hint!

BTW: Is this an undocumented function?
I could not find how to do this in the Cadence documentation and still
can't (I now tried searching "delete\(","delete","delete" AND
"SKILL").

Kind regards,
Marco
 
marcoballins@gmail.com wrote, on 09/10/08 16:16:
On Sep 10, 2:14 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm
wrote:
marcoball...@gmail.com wrote, on 09/09/08 17:03:



On Sep 9, 5:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch
wrote:
I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?
I'm not aware of any, but... I can't see a situation where it could be necessary...
To reset everything you can re-issue the design(...) command.
This seems not to work for me :(
If I do:
desVar("a" 1)
desVar("b" 2)
desVar()
I get:
(("a" "1")
("b" "1")
)
If now I call design():
design("myLib" "myCell" "schematic")
desVar()
design variables are still there. in fact I get again:
(("a" "1")
("b" "1")
)
The reason I'd like to clear all design variables is that I launch
several scripts for several different cells, which may use the same
name for some design variables.
I just want to be sure that the value of a desVar meant for a circuit
is not used for another one, in case for the new circuit the new value
was not specified (because I forgot to set the new value).
Clearing the design variable would easily solve this problem, because
I would get a message that the design variable was not defined for the
second circuit, thus pointing out the bug in the script (i.e. the
missing new value).
Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?
yourVar = 'unbound
Thanks!
Marco
Use:

delete('desVar)

to delete the lot. Or:

delete('desVar "a")

to delete a specific variable.

Thanks for the hint!

BTW: Is this an undocumented function?
I could not find how to do this in the Cadence documentation and still
can't (I now tried searching "delete\(","delete","delete" AND
"SKILL").

Kind regards,
Marco
No, it's documented. You'll find it in the OCEAN reference manual - for example:
<ICinstDir>/doc/oceanref/oceanref.pdf - a logical place to look for OCEAN
functions...

Also, in "cdsFinder".

Regards,

Andrew.
 
On Sep 11, 12:41 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
marcoball...@gmail.com wrote, on 09/10/08 16:16:



On Sep 10, 2:14 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm
wrote:
marcoball...@gmail.com wrote, on 09/09/08 17:03:

On Sep 9, 5:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch
wrote:
I would like to know if it's possible to delete a design variable,
declared with desVar(), from SKILL? How?
Is there any function to delete all design variables?
I'm not aware of any, but...  I can't see a situation where it could be necessary...
To reset everything you can re-issue the design(...) command.
This seems not to work for me :(
If I do:
desVar("a" 1)
desVar("b" 2)
desVar()
I get:
(("a" "1")
    ("b" "1")
)
If now I call design():
design("myLib" "myCell" "schematic")
desVar()
 design variables are still there. in fact I get again:
(("a" "1")
    ("b" "1")
)
The reason I'd like to clear all design variables is that I launch
several scripts for several different cells, which may use the same
name for some design variables.
I just want to be sure that the value of a desVar meant for a circuit
is not used for another one, in case for the new circuit the new value
was not specified (because I forgot to set the new value).
Clearing the design variable would easily solve this problem, because
I would get a message that the design variable was not defined for the
second circuit, thus pointing out the bug in the script (i.e. the
missing new value).
Is it possible to delete a global variable (not a design variable)
from SKILL (that was previouslz defined in SKILL script)?
yourVar = 'unbound
Thanks!
Marco
Use:

delete('desVar)

to delete the lot. Or:

delete('desVar "a")

to delete a specific variable.

Thanks for the hint!

BTW: Is this an undocumented function?
I could not find how to do this in the Cadence documentation and still
can't (I now tried searching "delete\(","delete","delete" AND
"SKILL").

Kind regards,
Marco

No, it's documented. You'll find it in the OCEAN reference manual - for example:
ICinstDir>/doc/oceanref/oceanref.pdf - a logical place to look for OCEAN
functions...

Also, in "cdsFinder".

Regards,

Andrew.
Thanks and sorry (stupid me I did not use the correct keywords for
searching!).
Kind regards,
Marco
 

Welcome to EDABoard.com

Sponsor

Back
Top