what's wrong with the function ocnYvsYplot?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
what's wrong with the function ocnYvsYplot?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
wjx197733



Joined: 30 Jun 2006
Posts: 1

Posted: Fri Jun 30, 2006 12:56 pm    Post subject: what's wrong with the function ocnYvsYplot? Reply with quote

Hi, all: I use ocean to simulate an OPA, and I use the function ocnYvsYplot. there have wrong in this two sentences:

val_one=value(ocnYvsYplot(?wavex vod ?wavey derivative) -3.0)
val_two=value(ocnYvsYplot(?wavex vod ?wavey derivative) 3.0)

I do not know why. the .ocn file is this:

ocnWaveformTool( 'awd )
simulator( 'spectre )
design("/home/wjx/full_opa/lfl_SDADC_FULL_OPA_AC/dc_vic/netlist")
resultsDir("/home/wjx/full_opa/lfl_SDADC_FULL_OPA_AC/dc_vic/results")
path("/home/wued/lib/csmc06")

analysis('tran ?stop "2u" ?errpreset "conservative" )
analysis('dc ?saveOppoint t ?dev "/V6" ?param "vic"
?start "-2m" ?stop "2m" ?step "1u" ?readforce "spectre.fc"
?restart "yes" )
envOption(
'firstRun t
)
saveOption( ?saveahdlvars "all" )
saveOption( 'useprobes "yes" )
saveOption( 'currents "all" )
saveOption( 'pwr "all" )

;#####################################################################
;################### Corners Sweep Simulation ########################
;#####################################################################

corners='(
("sf" "slowfast45_30" "4.5V" "30")
;("ss" "slowslow45_30" "4.5V" "30")
;("fs" "fastslow45_30" "4.5V" "30")
;("ff" "fastfast45_30" "4.5V" "30")
;("tt" "typetype45_30" "4.5V" "30")
;("sf" "slowfast50_30" "5V" "30")
;("ss" "slowslow50_30" "5V" "30")
;("fs" "fastslow50_30" "5V" "30")
;("ff" "fastfast50_30" "5V" "30")
;("tt" "typetype50_30" "5V" "30")
;("sf" "slowfast55_30" "5.5V" "30")
;("ss" "slowslow55_30" "5.5V" "30")
;("fs" "fastslow55_30" "5.5V" "30")
;("ff" "fastfast55_30" "5.5V" "30")
;("tt" "typetype55_30" "5.5V" "30")
;("sf" "slowfast45_80" "4.5V" "80")
;("ss" "slowslow45_80" "4.5V" "80")
;("fs" "fastslow45_80" "4.5V" "80")
;("ff" "fastfast45_80" "4.5V" "80")
;("tt" "typetype45_80" "4.5V" "80")
;("sf" "slowfast50_80" "5V" "80")
;("ss" "slowslow50_80" "5V" "80")
;("fs" "fastslow50_80" "5V" "80")
;("ff" "fastfast50_80" "5V" "80")
;("tt" "typetype50_80" "5V" "80")
;("sf" "slowfast55_80" "5.5V" "80")
;("ss" "slowslow55_80" "5.5V" "80")
;("fs" "fastslow55_80" "5.5V" "80")
;("ff" "fastfast55_80" "5.5V" "80")
;("tt" "typetype55_80" "5.5V" "80")
)

loadPcf("/home/wjx/full_opa/ocean/opamp_ac_corners.pcf")
summary = outfile("/home/wjx/full_opa/lfl_SDADC_FULL_OPA_AC/dc_vic/summary.txt" "w")
fprintf(summary "Process Voltage Temp deriv value_one value_two\n")

foreach(corner corners
modelFile(list("s06mixddct02v23.scs" sprintf(nil "%s" car(corner))))
resultsDir(sprintf(nil "/home/wjx/full_opa/lfl_SDADC_FULL_OPA_AC/dc_vic/results/%s" cadr(corner)))

run()

option('reltol "1e-5")
cornerRun(sprintf(nil "%s" cadr(corner)))

selectResult('dc)
)

foreach(corner corners
openResults(sprintf(nil "/home/wjx/full_opa/lfl_SDADC_FULL_OPA_AC/dc_vic/results/%s/Corners/%s" cadr(corner) cadr(corner)))
selectResults('dc)

;###########################################
;####### OpenLoop Frequency Response #######
;###########################################

derivative = deriv(v("VOD"))
Max_deri = abs(ymax(derivative))
vod = v("VOD")
ocnYvsYplot(?wavex vod ?wavey derivative)
val_one=value(ocnYvsYplot(?wavex vod ?wavey derivative) -3.0)
val_two=value(ocnYvsYplot(?wavex vod ?wavey derivative) 3.0)
fprintf(summary "%s %s %s %e %e %e\n"
cadr(corner) caddr(corner) caddr(corner) Max_deri val_one val_two)
)



I think somebody can help me. thanx!!!!

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB