Printing all variable names

Discussion in 'Cadence' started by Guenther Sohler, Nov 19, 2007.

  1. 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 ?
     
    Guenther Sohler, Nov 19, 2007
    #1
  2. 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 Are Bjerkem, Nov 19, 2007
    #2
  3. 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, Nov 19, 2007
    #3
  4. Thank you for the immediate reply, andrew

    is it possible to use listVariables without having skilldev ?


    rds
     
    Guenther Sohler, Nov 20, 2007
    #4
  5. 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, Nov 20, 2007
    #5
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.