• 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
  • vivkr
    vivkr over 14 years ago

     Hi Andrew,

     I am experiencing the same sort of problem although I am not using any special OCEAN or SKILL script. I was trying to print out a signal to a text file to use it as a PWL source later on. As the number of significant digits used by the waveform calculator is limited to about 4 (despite my having changed this number under "Options->Significant Digits"), I decided to use ocnPrint through the CI.

     I try

    ocnPrint(?output "myOut.txt" ?precision 10 ?numberNotation 'none clip( i("I0:3" ?result "tran-tran" ?resultsDir "pathname") 2n 10n) )

     Note that the expression is simply copied from the calculator buffer. I get the following error message:

     *Error* fprintf/sprintf: format spec. incompatible with data - "Format is '%g', argument #1 is 170"

    I get the same problem if I try to print a voltage, and so it is not caused by the current not being saved with the correct port mapping or so. 

    I even tried to run it by directly invoking OCEAN in the terminal, and selecting the results with openResults(), selectResults() etc., but to no avail. I don't get an error message there, just an empty output file. Of course, when I run OCEAN in the terminal, I leave out the ?result and ?resultsDir parts, since they have been already taken care of with openResults() and selectResults().

     I am working with Cadence IC 6.1.4.

    Thanks,

    Vivek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • vivkr
    vivkr over 14 years ago

     Hi Andrew,

     I am experiencing the same sort of problem although I am not using any special OCEAN or SKILL script. I was trying to print out a signal to a text file to use it as a PWL source later on. As the number of significant digits used by the waveform calculator is limited to about 4 (despite my having changed this number under "Options->Significant Digits"), I decided to use ocnPrint through the CI.

     I try

    ocnPrint(?output "myOut.txt" ?precision 10 ?numberNotation 'none clip( i("I0:3" ?result "tran-tran" ?resultsDir "pathname") 2n 10n) )

     Note that the expression is simply copied from the calculator buffer. I get the following error message:

     *Error* fprintf/sprintf: format spec. incompatible with data - "Format is '%g', argument #1 is 170"

    I get the same problem if I try to print a voltage, and so it is not caused by the current not being saved with the correct port mapping or so. 

    I even tried to run it by directly invoking OCEAN in the terminal, and selecting the results with openResults(), selectResults() etc., but to no avail. I don't get an error message there, just an empty output file. Of course, when I run OCEAN in the terminal, I leave out the ?result and ?resultsDir parts, since they have been already taken care of with openResults() and selectResults().

     I am working with Cadence IC 6.1.4.

    Thanks,

    Vivek

    • 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