S
spectrallypure
Guest
Hi all!.
I believe this has been somewhat (attempted to be) addressed in the
past (see e.g.
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/f858d0b06efeba80/1d3bedcf15f2babb?lnk=gst&q=parametric+plot+skill#1d3bedcf15f2babb),
but after reading the documentation and searching through the forum I
haven't been able to figure out the Skill /Ocean code needed to 'grab'
and plot individual results from a parametric analysis.
Please consider the following sample code:
; =====================================
; Sample_simulation_individual_steps.il
; =====================================
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design( "/home/cdsmgr/cds/tesis/Sim/GIAPRI/spectre/schematic/netlist/
netlist")
resultsDir( "/home/cdsmgr/cds/tesis/Sim/GIAPRI/spectre/schematic" )
modelFile( '("/programs/cadence/DESIGN_KITS/ams_v3.70/spectre/c35/
mcparams.scs" "")
'("/programs/cadence/DESIGN_KITS/ams_v3.70/spectre/c35/cmos53.scs"
"cmostm") )
analysis( 'dc ?param "IAPR_cero" ?start "0" ?stop "1" )
load("Cargar_Variables_Diseno_Tesis.il")
desVar( "IINTs_menos1" 0.5 )
desVar( "IAPR_cero" 0.5 )
temp( 27 )
save( 'i "/DUT/IAPRI_uno" "/DUT/IAPRI_cero" )
paramAnalysis( "IINTs_menos1" ?values '(0.01 0.5 0.99 ) ?sweepType
'paramset )
paramRun()
;Selection of an individual (first) step of the parametric set
selectResult( 'dc car(sweepValues()) )
; Signal IAPRI_cero
pIAPRI_cero = (IDC("/DUT/IAPRI_cero") / (IDC("/DUT/IAPRI_cero") +
IDC("/DUT/IAPRI_uno")))
plot( pIAPRI_cero ?expr '( "pIAPRI_cero" ) )
addSubwindowTitle( "IAPRI_cero" )
; Signal IAPRI_uno
pIAPRI_uno = (IDC("/DUT/IAPRI_uno") / (IDC("/DUT/IAPRI_cero") + IDC("/
DUT/IAPRI_uno")))
plot( pIAPRI_uno ?expr '( "pIAPRI_uno" ) )
addSubwindowTitle( "IAPRI_uno" )
;end.
Without the "selectResult" line, it runs fine but plots the entire
curve families for both generated signals. When I add the
"selectResult" line, which I took from CH7 in the Ocean Ref. manual -
under the description for this command (BTW: the line there seems to
be mistyped, as it reads "selectResult(( 'tran car( sweepValues() )" -
parentheses mismatch), not only don't I get the desired result but it
also throws me the following error (I guess it's sweepValues
complaining):
\o You must do openResults() and selectResults() before using
\o this command. Make sure your openResults() and
\o selectResults() commands worked. Use ocnHelp('openResults)
\o and ocnHelp('selectResults) for more information.
I have tried including lines like "selectResult('dc)" or using the
openResults command before the aforementioned line, but with no luck.
I would be really grateful if someone could please give me a hint on
how to figure this out. Thanks in advance for any help/ideas/
comments!
Regards,
Jorge Luis.
I believe this has been somewhat (attempted to be) addressed in the
past (see e.g.
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/f858d0b06efeba80/1d3bedcf15f2babb?lnk=gst&q=parametric+plot+skill#1d3bedcf15f2babb),
but after reading the documentation and searching through the forum I
haven't been able to figure out the Skill /Ocean code needed to 'grab'
and plot individual results from a parametric analysis.
Please consider the following sample code:
; =====================================
; Sample_simulation_individual_steps.il
; =====================================
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design( "/home/cdsmgr/cds/tesis/Sim/GIAPRI/spectre/schematic/netlist/
netlist")
resultsDir( "/home/cdsmgr/cds/tesis/Sim/GIAPRI/spectre/schematic" )
modelFile( '("/programs/cadence/DESIGN_KITS/ams_v3.70/spectre/c35/
mcparams.scs" "")
'("/programs/cadence/DESIGN_KITS/ams_v3.70/spectre/c35/cmos53.scs"
"cmostm") )
analysis( 'dc ?param "IAPR_cero" ?start "0" ?stop "1" )
load("Cargar_Variables_Diseno_Tesis.il")
desVar( "IINTs_menos1" 0.5 )
desVar( "IAPR_cero" 0.5 )
temp( 27 )
save( 'i "/DUT/IAPRI_uno" "/DUT/IAPRI_cero" )
paramAnalysis( "IINTs_menos1" ?values '(0.01 0.5 0.99 ) ?sweepType
'paramset )
paramRun()
;Selection of an individual (first) step of the parametric set
selectResult( 'dc car(sweepValues()) )
; Signal IAPRI_cero
pIAPRI_cero = (IDC("/DUT/IAPRI_cero") / (IDC("/DUT/IAPRI_cero") +
IDC("/DUT/IAPRI_uno")))
plot( pIAPRI_cero ?expr '( "pIAPRI_cero" ) )
addSubwindowTitle( "IAPRI_cero" )
; Signal IAPRI_uno
pIAPRI_uno = (IDC("/DUT/IAPRI_uno") / (IDC("/DUT/IAPRI_cero") + IDC("/
DUT/IAPRI_uno")))
plot( pIAPRI_uno ?expr '( "pIAPRI_uno" ) )
addSubwindowTitle( "IAPRI_uno" )
;end.
Without the "selectResult" line, it runs fine but plots the entire
curve families for both generated signals. When I add the
"selectResult" line, which I took from CH7 in the Ocean Ref. manual -
under the description for this command (BTW: the line there seems to
be mistyped, as it reads "selectResult(( 'tran car( sweepValues() )" -
parentheses mismatch), not only don't I get the desired result but it
also throws me the following error (I guess it's sweepValues
complaining):
\o You must do openResults() and selectResults() before using
\o this command. Make sure your openResults() and
\o selectResults() commands worked. Use ocnHelp('openResults)
\o and ocnHelp('selectResults) for more information.
I have tried including lines like "selectResult('dc)" or using the
openResults command before the aforementioned line, but with no luck.
I would be really grateful if someone could please give me a hint on
how to figure this out. Thanks in advance for any help/ideas/
comments!
Regards,
Jorge Luis.