• 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
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Stefano,

    By the looks of the error message, something has ended up as an integer, but you're using %f in the fprintf statement to print it. Not really sure quite where the data is coming from, but that's my guess. If you're going to use %f, you could case the value to a float by using float(L_opt) or float(eff_opt) in the arguments to fprintf.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Stefano,

    By the looks of the error message, something has ended up as an integer, but you're using %f in the fprintf statement to print it. Not really sure quite where the data is coming from, but that's my guess. If you're going to use %f, you could case the value to a float by using float(L_opt) or float(eff_opt) in the arguments to fprintf.

    Regards,

    Andrew.

    • 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