How to delete a (design) variable

Discussion in 'Cadence' started by marcoballins, Sep 9, 2008.

  1. marcoballins

    marcoballins 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
     
    marcoballins, Sep 9, 2008
    #1
  2. marcoballins

    S. Badel Guest

    I would like to know if it's possible to delete a design variable,
    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.
    yourVar = 'unbound


    Cheers,
    Stéphane
     
    S. Badel, Sep 9, 2008
    #2
  3. marcoballins

    marcoballins Guest

    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).

    Thanks!

    Marco
     
    marcoballins, Sep 9, 2008
    #3
  4. 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.
     
    Andrew Beckett, Sep 10, 2008
    #4
  5. marcoballins

    marcoballins Guest

    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, Sep 10, 2008
    #5
  6. 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.
     
    Andrew Beckett, Sep 11, 2008
    #6
  7. marcoballins

    marcoballins Guest

    Thanks and sorry (stupid me I did not use the correct keywords for
    searching!).
    Kind regards,
    Marco
     
    marcoballins, Sep 11, 2008
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.