Passing model file as a string parameter in cadence ocean script

  • Follow


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
0
Reply pratap.iisc (8) 12/22/2009 12:46:27 PM

Pratap wrote, on 12/22/09 12:46:
> 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

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.
0
Reply Andrew 12/23/2009 2:22:59 PM


On Dec 23, 6:22=A0am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
> Pratap wrote, on 12/22/09 12:46:
>
>
>
> > 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(
> > =A0 =A0 '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectr=
e/
> > 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
>
> So something like this:
>
> simulator('spectre)
> design(...)
> analysis(...)
> desVar(...)
>
> foreach(corner list("tt" "ss" "ff")
> =A0 =A0modelFile(
> list("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/L130E=
_HS12_V241.lib.scs"
> corner)
> =A0 =A0)
> =A0 =A0; any other changes
> =A0 =A0run()
> =A0 =A0; whatever post-processing you want
> )
>
> Regards,
>
> Andrew.

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:
>    modelFile(
> list("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/L130E=
_HS12_V241.lib.scs"
> corner)

Merry Xmas,

Klaus
0
Reply klaus 12/25/2009 2:25:39 PM

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.
0
Reply Riad 12/28/2009 6:19:17 PM

On Dec 28, 7:19=A0pm, Riad KACED <riad.ka...@gmail.com> wrote:
> 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.

Hi Riad,

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

Cheers,

Klaus
0
Reply klaus 12/29/2009 12:07:04 PM

klaus wrote, on 12/29/09 12:07:
> On Dec 28, 7:19 pm, Riad KACED <riad.ka...@gmail.com> wrote:
>> 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.
> 
> Hi Riad,
> 
> thanks, will try it and wonder how simple ocean can be ;-) .
> 
> Cheers,
> 
> Klaus

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.
0
Reply Andrew 12/29/2009 3:31:32 PM

5 Replies
863 Views

(page loaded in 0.083 seconds)

Similiar Articles:








7/24/2012 8:13:30 PM


Reply: