• 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. RF Design
  3. How to print two PNOISE outputs into files using OCEAN ...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 63
  • Views 14625
  • 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

How to print two PNOISE outputs into files using OCEAN script

RFQuery
RFQuery over 12 years ago

 Dear All,

I have to print the Two PNOISE Outputs ( You may see the Pnoise analysis command below in the code) into a file using ocean script.

But the below script is not able to write into the file. It is showingfollowing error

 "Results "pnoise-pnoise" are not available for..."

 

But when I am using only one Pnoise output , with  the command :- "s11r = value( getData("out" ?result "pnoise-pnoise") freq)" it is writing into the file.

Can anybody tell how I can write both outputs using above type command.

Kind Regards,

 

 

 

 

ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design(     "/home/../simulation/TB_PNOISE_MIXER_SWITCH/spectre/schematic/netlist/netlist")
resultsDir( "/home/../simulation/TB_PNOISE_MIXER_SWITCH/spectre/schematic" )
modelFile(
    '("/home/../work_cad/...scs" "tt")
)
analysis('pnoise ?start "1.5G"  ?stop "2.5G"  ?step "100M" 
        ?maxsideband "50"  ?multioutNum "2"  ?p "/RF_IN"  ?n "/gnd!" 
        ?oprobe ""  ?iprobe ""  ?refsideband ""  ?p2 "/I+" 
        ?n2 "/gnd!"  )
analysis('pss ?fund "2G"  ?harms "1000"  ?errpreset "conservative" 
        ?tstab "100n"  ?saveinit "yes"  ?method "gear2only"  ?tstabmethod "gear2only" 
        ?maxacfreq "100G"  )
desVar(      "T" .5n    )
temp( 27 )
run()



myPort1 = outfile( "/home/../MAT_WORK_CAD/.../MIX_PNOISE.txt" )

for( i  -5  5       
     freq = 2e9 + i*100e6;
 
     s11r = value( getData("out" ?result "pnoiseOut1-pnoise") freq) 

     fprintf( myPort1 " %e %s %e   \n", freq, "," s11r )

     )
close( myPort1 ) 

  • Cancel
Parents
  • Supriyo
    Supriyo over 9 years ago

    Hi Andrew, 

    I have run into problem while trying to print integrated noise value in pss/pnoise simulation in oceanscript using the following command. 

    noiseSummary( 'integrated ?result "pss.fd.pss" ?from 100M ?to 500M ?truncateType 'top ?truncateData 20 ?deviceType 'all ?noiseUnit "V^2" ?output "./filename.ns" ?paramValues list(45p))

    WARNING (OCN-6038): Results pss.fd.pss are not available for /usr2/smaji/simulation/sa2Copy/spectre/schematic. Use results() for a list of available results.

    Since I was not sure which one of the file stored in psf dir would contain the results, I tried to use all the files including  pss.fd.pss, pss.td.pss, pnoise.timedomain.pnoise, pnoise.1.timedomain.pnoise, pnoise.0.timedomain.pnoise but all of them would give me the same warning. 

    After your suggestion, I used results() and results(?noAlias t) functions, but they don't return anything. Any help is highly appreciated. 

    Thanks

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Supriyo
    Supriyo over 9 years ago

    Hi Andrew, 

    I have run into problem while trying to print integrated noise value in pss/pnoise simulation in oceanscript using the following command. 

    noiseSummary( 'integrated ?result "pss.fd.pss" ?from 100M ?to 500M ?truncateType 'top ?truncateData 20 ?deviceType 'all ?noiseUnit "V^2" ?output "./filename.ns" ?paramValues list(45p))

    WARNING (OCN-6038): Results pss.fd.pss are not available for /usr2/smaji/simulation/sa2Copy/spectre/schematic. Use results() for a list of available results.

    Since I was not sure which one of the file stored in psf dir would contain the results, I tried to use all the files including  pss.fd.pss, pss.td.pss, pnoise.timedomain.pnoise, pnoise.1.timedomain.pnoise, pnoise.0.timedomain.pnoise but all of them would give me the same warning. 

    After your suggestion, I used results() and results(?noAlias t) functions, but they don't return anything. Any help is highly appreciated. 

    Thanks

    Supriyo

    • 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