在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3345|回复: 5

[求助] ocean script 求助

[复制链接]
发表于 2013-11-29 14:20:00 | 显示全部楼层 |阅读模式
2000资产
ocnWaveformTool( 'wavescan )
simulator( 'aps )
design(  "./netlist")
CorTempList=list(
list("top_tt",85,0.9,1.8)
list("top_ss",-40,0.81,1.62)
list("top_ff",125,0.99,1.98)
)
I=0
p=outfile("./delay.txt" "w")
fprintf(p,"%s \n" "corner td_en td_pd td_pu td_ensd td_en" )
foreach(CorTemp CorTempList
  tsmc=nth(0,CorTemp)
  Temp=nth(1,CorTemp)
  pwr1=nth(2,CorTemp)
  pwr2=nth(3,CorTemp)
  I=I+1
  resultsDir(strcat("./") tsmc)
  modelFile(
    list("/ip/lvdt01a/lvdt01aa/28PDK/tsmcN28/../models/spectre/toplevel.scs" tsmc)
)
  analysis('tran ?stop "120n"  ?errpreset "moderate"  )
  desVar(   "xod" 25m     )
  desVar(   "tr" 10p      )
  desVar(   "xfreq" 1.1e9 )
  desVar(   "xcm" 0.9     )
  desVar(   "xavdd" pwr2  )
  desVar(   "xdvdd" pwr1  )
  envOption(
        'analysisOrder  list("dc" "tran" "ac")
  )
  temp(Temp)
  saveOption( 'save "selected" )
  save( 'v "/PD" "/EN" "/EN_SD" "/sdc<0>" "/sda<23>" "/da<23>" "/clk<0>" )
  run()
  selectResult( 'tran )
  td_en = value( delay(VT("/EN") pwr1/2 1 "rising" VT("/clk<0>") pwr1/2 1 "rising" 1 1 t ) )
  td_pd = value( delay(VT("/PD")  pwr1/2 1 "rising" VT("/clk<0>")  pwr1/2 1 "falling" 1 1 t ) )
  td_pu = value( delay(VT("/PD")  pwr1/2 1 "falling" VT("/clk<0>")  pwr1/2 2 "rising" 1 1 t ) )
   td_ensd = value( delay(VT("/EN_SD")  pwr1/2 1 "rising" VT("/sdc<0>")  pwr1/2 1 "rising" 1 1 t ) )
  td_en = value( delay(VT("/EN")  pwr1/2 1 "falling" VT("/clk<0>")  pwr1/2 3 "falling" 1 1 t ) )
  fprintf(p,"%s %f %f %f %f %f \n" tsmc td_en td_pd td_pu td_ensd td_en)
)
  close(p)
  printf("\n---End---\n")
==============================================================
一直报错
求大神帮忙改改,不胜感激
The directory you specified does not contain valid PSF
          results. Please check the line for typographical errors or
          look in the directory for a logFile and PSF result files.
          You need to specify what results you want to look at before
          using this command. You can do this with the openResults()
          command. See ocnHelp('openResults) for more information.
*Error* fprintf/sprintf: format spec. incompatible with data - nil

 楼主| 发表于 2013-11-29 15:07:35 | 显示全部楼层
搞定了
2000信元自己收了哈哈
发表于 2013-11-29 16:15:29 | 显示全部楼层
你这不厚道,自己搞出来不算,重来一遍
发表于 2013-11-30 22:03:55 | 显示全部楼层
fprintf后面的变量格式不对楼主,分给我吧,我正确回答了,一旦你发布了悬赏,分数当时就已经扣除了,你是无法收回的啊
发表于 2013-12-1 10:34:45 | 显示全部楼层
回复 2# nool


   求楼主公布正确答案
发表于 2014-4-23 09:29:44 | 显示全部楼层
还是不懂啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-4 09:51 , Processed in 0.026922 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表