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

     What does the results() function return after the simulation? Also results(?noAlias t)

    Regards,

    Andrew.

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

     What does the results() function return after the simulation? Also results(?noAlias t)

    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