Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Passing model file as a string parameter in cadence ocean sc

Status
Not open for further replies.

pd

Full Member level 1
Joined
May 23, 2006
Messages
99
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Location
India
Activity points
2,243
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...

Code:
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
 

Re: Passing model file as a string parameter in cadence ocea

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

you could use:
Code:
corners=( "ss" "tt" "ff" )
foreach( corner corners
  modelFile( '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/
  L130E_HS12_V241.lib.scs" sprintf( nil "%s" corner ) ) 
)
If this does not work:
Code:
if(corner=="ss"
  modelFile( '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/
  L130E_HS12_V241.lib.scs" "ss")
  if(corner=="tt"
    modelFile( '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models
    /Spectre/L130E_HS12_V241.lib.scs" "tt")
    if(corner=="ff"
      modelFile( '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models
      /Spectre/L130E_HS12_V241.lib.scs" "tt")
    )
  )
)

I hope it helps!
 

    pd

    Points: 2
    Helpful Answer Positive Rating
Re: Passing model file as a string parameter in cadence ocea

Thanks JoannesPaulus,
The if type logic worked with a bit of correction...
(There was a single quote missing in the array declaration...)
But for passing string parameter a special syntax like "list" was required.

This is the way the final code looks like.
Code:
corners='( "ss" "tt" "ff" "snfp" "fnsp" )
foreach(corner corners
  modelFile(
   list( "/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/L130E_HS12_V241.lib.scs" sprintf( nil "%s" corner))
          )
.
.
.
.
)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top