|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
小弟刚开始学着用ocean脚本来做corner仿真,但是无法仿真下去,下面是小弟的脚本,
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design( "/home/xjq28007/simulation/LC_VCO_V2_1920M_corners/spectre/schematic/netlist/netlist")
resultsDir( "/home/xjq28007/simulation/LC_VCO_V2_1920M_corners/spectre/schematic" )
silter=list(
(
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_to_tt")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_bjt_tt")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_res_tt")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_mim_cap_tt")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_nvar_tt")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18rf_vpcd_inductor_rev0_2.scs" "section=c18rf_vpcd_tt")
)
(
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_to_ff")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_bjt_max")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_res_max")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_mim_cap_max")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_nvar_max")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18rf_vpcd_inductor_rev0_2.scs" "section=c18rf_vpcd_max")
)
(
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_to_ss")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_bjt_min")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_res_min")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_mim_cap_min")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_nvar_min")
'("/home/xjq28007/project/work/cadence/models/spectre_corners/c18rf_vpcd_inductor_rev0_2.scs" "section=c18rf_vpcd_min")
))
i=0
tmp=list(125 27 -40)
foreach(silterra silter
foreach(temp tmp
i=i+1
model_silter=list(silterra)
modelFile( model_silter)
analysis('pss ?fund "1.5G" ?harms "5" ?errpreset "conservative"
?tstab "500n" ?oscana t ?p "/OUTPUTN" ?n "/gnda"
?param "vctrl" ?start "0" ?stop "2.5" ?sweepStep "0.2"
?restart "" ?ic "dc" ?method "gear2only" ?tstabmethod "gear2only"
?ppv "" )
)
desVar( "vdd33" 3.3 )
desVar( "vctrl" 2.5 )
desVar( "vctrlN" "2.5-vctrl" )
envOption(
'firstRun t
)
run()
harm\=1\ freq\;\ pss\ \(Hz\) = harmonic(xval(getData("/ACGND" ?result "pss_fd")) '1)
plot( harm\=1\ freq\;\ pss\ \(Hz\) ?expr '( "harm=1 freq; pss (Hz)" ) )
)
)
提示的错误是:
*Error* eval: not a function - '("/home/xjq28007/project/work/cadence/models/spectre_corners/c18_core18_io33_header_spectre.scs" "section=c18_to_tt")
先谢谢大家了! |
|