Passing model file as a string parameter in cadence ocean script

Discussion in 'Cadence' started by Pratap, Dec 22, 2009.

  1. Pratap

    Pratap Guest

    Hi,
    I want to do a corner analysis along with several other variable
    parameters for my design.
    At present the line specifying the model file looks like this...

    modelFile(
    '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/
    L130E_HS12_V241.lib.scs" "ss")
    )

    All I need to change is the last argument as "ff" or "tt". So I want
    to give these strings as parameters from an array and run the
    simulation.
    Does anybody have an idea how can I do so?
    Waiting for some solution,
    -Pratap
     
    Pratap, Dec 22, 2009
    #1
  2. Pratap wrote, on 12/22/09 12:46:
    So something like this:

    simulator('spectre)
    design(...)
    analysis(...)
    desVar(...)

    foreach(corner list("tt" "ss" "ff")
    modelFile(
    list("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/L130E_HS12_V241.lib.scs"
    corner)
    )
    ; any other changes
    run()
    ; whatever post-processing you want
    )


    Regards,

    Andrew.
     
    Andrew Beckett, Dec 23, 2009
    #2
  3. Pratap

    klaus Guest

    Hello Andrew,

    could you pls. elaborate on this a bit? I did this in a little bit
    more complicated way.

    What is the prerequisite that I can call a model file simply by:
    Merry Xmas,

    Klaus
     
    klaus, Dec 25, 2009
    #3
  4. Pratap

    Riad KACED Guest

    Hi Klaus,

    The pre-requisits are simply:
    1. The model file itself
    2. the list of sections included in the model file, i.e. ss, tt,
    ff ... etc.

    The foreach loop would then deal with each section, simple as that.
    Assuming I understood your question ...

    Cheers,
    Riad.
     
    Riad KACED, Dec 28, 2009
    #4
  5. Pratap

    klaus Guest

    Hi Riad,

    thanks, will try it and wonder how simple ocean can be ;-) .

    Cheers,

    Klaus
     
    klaus, Dec 29, 2009
    #5
  6. klaus wrote, on 12/29/09 12:07:
    The key point of my previous post was the use of list() rather than '(). The
    quote prevents evaluation of anything inside the parentheses, whereas the list()
    function is a normal function that evaluates all its arguments prior to the
    call, which then creates a list from all the arguments.

    In this case we don't want a literal list (which is what the '() would have
    done), but a list assembled from evaluated variables.

    Regards,

    Andrew.
     
    Andrew Beckett, Dec 29, 2009
    #6
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.