Home > Community > Forums > RF Design > How to print two PNOISE outputs into files using OCEAN script

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to print two PNOISE outputs into files using OCEAN script 

Last post Wed, Jan 2 2013 5:38 AM by Andrew Beckett. 1 replies.
Started by RFQuery 03 Oct 2012 05:05 AM. Topic has 1 replies and 1020 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Oct 3 2012 5:05 AM

    • RFQuery
    • Top 75 Contributor
    • Joined on Wed, Jul 20 2011
    • Posts 88
    • Points 1,250
    How to print two PNOISE outputs into files using OCEAN script Reply

     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 ) 

    • Post Points: 20
  • Wed, Jan 2 2013 5:38 AM

    Re: How to print two PNOISE outputs into files using OCEAN script Reply

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

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by RFQuery at 03 Oct 2012 05:05 AM. Topic has 1 replies.