Quantcast
Channel: Cadence RF Design Forum
Viewing all articles
Browse latest Browse all 956

How to print two PNOISE outputs into files using OCEAN script

$
0
0

 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 ) 


Viewing all articles
Browse latest Browse all 956

Trending Articles