• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. OCEAN Parametric analysis

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 126
  • Views 14925
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OCEAN Parametric analysis

Ueue
Ueue over 15 years ago

Dear all,

 

I am running parametric analyses with an OCEAN script.

It finishes and all the output variables are correctly evaluated.

I calculate two variables L_opt and eff_opt, that are single values, not array and I try to write them in a file.

Trying to write the data in the file OCEAN generates the following error:

" *Error* fprintf/sprintf: format spec. incompatible with data - 100000000 "

 

My script is:

"

...

fname="path/result.txt"

fileOut=outfile(fname "w")

...

paramAnalysis("L" ?start L1 ?stop L2 ?log NL)

...

paramRun()

...

; calculation of p_out and p_in ...

L_opt=xmax(p_out / (p_out + p_in) * 100)

eff_opt=value((p_out / (p_out + p_in) * 100) L_opt)

fprintf(fileOut "3.8f \t 3.8f \t \n", L_opt, eff_opt) 

 

Thanks a lot,

Stefano

  • Cancel
Parents
  • Ueue
    Ueue over 15 years ago

    Hi Andrew,

    Thanks for the reply. Since this parametric analysis is inside a while loop, I tried to simplify the problem studying a simpler script with only one parametric analysis. And surprise: it works! I tried also to put some printf before and inside the while cycle and the printf inside the while are not shown on the screen! The simulations are run in the while, but it seems that something of strange happens.

    So, I was thinking to use a script in another languange to call the OCEAN script, implementing the while cycle with this new languange.

    What do you think?

    Thanks a lot,

    Stefano

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Ueue
    Ueue over 15 years ago

    Hi Andrew,

    Thanks for the reply. Since this parametric analysis is inside a while loop, I tried to simplify the problem studying a simpler script with only one parametric analysis. And surprise: it works! I tried also to put some printf before and inside the while cycle and the printf inside the while are not shown on the screen! The simulations are run in the while, but it seems that something of strange happens.

    So, I was thinking to use a script in another languange to call the OCEAN script, implementing the while cycle with this new languange.

    What do you think?

    Thanks a lot,

    Stefano

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information