Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to select and plot individual results of parametric sim

Status
Not open for further replies.

lagos.jl

Member level 1
Joined
Apr 13, 2006
Messages
40
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,865
cmos53.scs

Hi all!.

After reading the related Cadence documentation and searching through the web 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.
 

Re: cmos53.scs

I have the same question here. Trying to export the result for gm/Id chart.


Hi all!.

After reading the related Cadence documentation and searching through the web 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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top