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.
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 )
What does the results() function return after the simulation? Also results(?noAlias t)
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.
If results() doesn't show anything, it suggests you don't have the results loaded (which should happen if you just ran the simulation). If you didn't run the simulation just before this statement, you'd need to call openResults("/path/to/psf") to open the results and then results() should work.
Either way, it's not the filename that is passed here, and it certainly wouldn't be "pss.fd.pss" as that is the name of the PSS frequency domain results and is nothing to do with the noise results.
Given that you appear to have run with time domain noise, I would expect you to use ?result "pnoise_td" or ?result "pnoise-timedomain.pnoise" (first is the aliased name, second is the non-aliased name).